OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Michael van Elst
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 21-Jul-2003 14:21:30
Branch: HEAD Handle: 2003072113213000
Modified files:
openpkg-src/apache2 rc.apache2
Log:
%status and pidfile handling
Summary:
Revision Changes Path
1.7 +16 -0 openpkg-src/apache2/rc.apache2
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/apache2/rc.apache2
============================================================================
$ cvs diff -u -r1.6 -r1.7 rc.apache2
--- openpkg-src/apache2/rc.apache2 21 Jul 2003 08:12:25 -0000 1.6
+++ openpkg-src/apache2/rc.apache2 21 Jul 2003 12:21:30 -0000 1.7
@@ -18,6 +18,22 @@
apache2_err_rotprolog="true"
apache2_err_rotepilog="true"
+%common
+ apache2_pidfile="@l_prefix@/var/apache2/run/httpd.pid"
+ apache2_signal () {
+ [ -f $apache2_pidfile ] && kill -$1 `cat $apache2_pidfile`
+ }
+
+%status -p 200 -u @l_susr@ -o
+ apache2_usable="no"
+ apache2_active="no"
+ @l_prefix@/sbin/apachectl configtest 2>/dev/null && apache2_usable="yes"
+ rcService apache2 enable yes && \
+ apache2_signal 0 && apache2_active="yes"
+ echo "apache2_enable=\"$apache2_enable\""
+ echo "apache2_usable=\"$apache2_usable\""
+ echo "apache2_active=\"$apache2_active\""
+
%start -p 200 -u @l_susr@
rcService apache2 enable yes || exit 0
@l_prefix@/sbin/apachectl start
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]