apachectl patch

Link to this paste: http://bugs.dragonflybsd.org/pastes/449

Added by justin 9 months ago.
Syntax: Diff

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- apachectl-orig      2014-03-31 18:56:25.001290000 -0400
+++ apachectl   2014-03-31 19:00:30.113285000 -0400
@@ -43,7 +43,8 @@
 #
 # the path to your httpd binary, including options if necessary
 HTTPD='/usr/local/sbin/httpd'
-SERVICE='/usr/sbin/service apache24'
+SERVICERUN='/sbin/rcrun'
+SERVICENAME='apache24'
 #
 # pick up any necessary environment variables
 if test -f /usr/local/sbin/envvars; then
@@ -81,7 +82,7 @@
 case $ACMD in
 start|stop|restart|rcvar|reload|graceful|gracefulstop|graceful-stop)
 #    $HTTPD -k $ARGV
-    $SERVICE $( echo $ACMD | tr -d '-' )
+    $SERVICERUN $( echo $ACMD | tr -d '-' ) $SERVICENAME
     ERROR=$?
     ;;
 startssl|sslstart|start-SSL)
@@ -92,12 +93,12 @@
     ;;
 configtest)
 #    $HTTPD -t
-    $SERVICE $ACMD
+    $SERVICERUN $ACMD $SERVICENAME
     ERROR=$?
     ;;
 status)
 #    $LYNX $STATUSURL | awk ' /process$/ { print; exit } { print } '
-    $SERVICE $ACMD
+    $SERVICERUN $ACMD $SERVICENAME
     ;;
 fullstatus)
     $LYNX $STATUSURL

Download