summaryrefslogtreecommitdiffstats
path: root/src.etc/init.d/httpd
diff options
context:
space:
mode:
Diffstat (limited to 'src.etc/init.d/httpd')
-rwxr-xr-xsrc.etc/init.d/httpd5
1 files changed, 3 insertions, 2 deletions
diff --git a/src.etc/init.d/httpd b/src.etc/init.d/httpd
index dc73d87..c26e151 100755
--- a/src.etc/init.d/httpd
+++ b/src.etc/init.d/httpd
@@ -6,11 +6,12 @@ STOP='60'
start()
{
log 'Starting httpd'
- start-stop-daemon -S -q -n httpd -x /usr/sbin/httpd -- -h /var/www
+ start-stop-daemon -S -q -p /var/run/httpd.pid -m \
+ -x /usr/sbin/httpd -b -- -f -h /var/www
}
stop()
{
log 'Stopping httpd'
- start-stop-daemon -K -q -n httpd
+ start-stop-daemon -K -q -p /var/run/httpd.pid
}