1 --- support/apachectl.in.orig 2006-07-12 03:38:44 UTC
2 +++ support/apachectl.in
4 # When multiple arguments are given, only the error from the _last_
5 # one is reported. Run "apachectl help" for usage info
10 # |||||||||||||||||||| START CONFIGURATION SECTION ||||||||||||||||||||
11 @@ -42,6 +43,7 @@ ARGV="$@"
13 # the path to your httpd binary, including options if necessary
14 HTTPD='@exp_sbindir@/@progname@'
15 +SERVICE='/usr/sbin/service apache22'
17 # pick up any necessary environment variables
18 if test -f @exp_sbindir@/envvars; then
19 @@ -65,19 +67,21 @@ ULIMIT_MAX_FILES="@APACHECTL_ULIMIT@"
20 # -------------------- --------------------
21 # |||||||||||||||||||| END CONFIGURATION SECTION ||||||||||||||||||||
23 +eval `limits -e -C daemon` >/dev/null 2>&1
24 # Set the maximum number of file descriptors allowed per child process.
25 if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then
30 -if [ "x$ARGV" = "x" ] ; then
32 +if [ "x$ACMD" = "x" ] ; then
37 -start|stop|restart|graceful|graceful-stop)
40 +start|stop|restart|rcvar|reload|graceful|gracefulstop|graceful-stop)
42 + $SERVICE $( echo $ACMD | tr -d '-' )
45 startssl|sslstart|start-SSL)
46 @@ -87,17 +91,19 @@ startssl|sslstart|start-SSL)
56 - $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } '
57 +# $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } '