* Merged newxml into HEAD
[linux_from_scratch.git] / bootscripts / blfs / init.d / apache
blob3aa1a2f4f4bcf2166ede84a562bf9c22b5dfae04
1 #!/bin/sh
2 # Begin $rc_base/init.d/apache
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
7 . /etc/sysconfig/rc
8 . $rc_functions
10 case "$1" in
11 start)
12 echo "Starting Apache daemon..."
13 /usr/sbin/apachectl -k start
14 evaluate_retval
17 stop)
18 echo "Stopping Apache daemon..."
19 /usr/sbin/apachectl -k stop
20 evaluate_retval
23 restart)
24 echo "Restarting Apache daemon..."
25 /usr/sbin/apachectl -k restart
26 evaluate_retval
29 status)
30 statusproc /usr/sbin/httpd
34 echo "Usage: $0 {start|stop|restart|status}"
35 exit 1
37 esac
39 # End $rc_base/init.d/apache