[Socialtext-commits] SF.net SVN: socialtext: [988] branches/rug/etc/init.d/st-apache
Brought to you by:
socialtextrocks
|
From: <pet...@us...> - 2007-01-30 05:36:37
|
Revision: 988
http://svn.sourceforge.net/socialtext/?rev=988&view=rev
Author: petdance
Date: 2007-01-29 21:36:35 -0800 (Mon, 29 Jan 2007)
Log Message:
-----------
Get the magic settings from Socialtext::Build
Modified Paths:
--------------
branches/rug/etc/init.d/st-apache
Modified: branches/rug/etc/init.d/st-apache
===================================================================
--- branches/rug/etc/init.d/st-apache 2007-01-30 02:47:59 UTC (rev 987)
+++ branches/rug/etc/init.d/st-apache 2007-01-30 05:36:35 UTC (rev 988)
@@ -18,12 +18,17 @@
my $webapi = get_build_setting( 'webapi' );
my $short_name = $webapi eq 'mod_perl1' ? 'apache-perl' : 'apache2';
+Readonly my $PREFIX => get_build_setting( 'prefix' );
+Readonly my $BINDIR => get_build_setting( 'bindir' );
+Readonly my $HTTPD => get_build_setting( 'httpd' );
+Readonly my $HTTPD_CONFDIR => get_build_setting( 'httpd_confdir' );
+Readonly my $HTTPD_PIDDIR => get_build_setting( 'httpd_piddir' );
+Readonly my $PERL => get_build_setting( 'perl' );
+
Readonly my $NAME => 'st-apache';
-Readonly my $CONF => '@PREFIX@@HTTPD_CONFDIR@/st-httpd.conf';
-Readonly my $DAEMON => '@HTTPD@';
-Readonly my @COMMAND => ($DAEMON, '-f', $CONF);
-Readonly my $PIDFILE => "@PREFIX@@HTTPD_PIDDIR@/$short_name.pid";
-Readonly my $PERL => '@PERL@';
+Readonly my $CONF => "$PREFIX$HTTPD_CONFDIR/st-httpd.conf";
+Readonly my @COMMAND => ($HTTPD, '-f', $CONF);
+Readonly my $PIDFILE => "$PREFIX$HTTPD_PIDDIR/st-$short_name.pid";
Readonly my $USER => 'root';
$ENV{LANG} = 'C';
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|