]>
git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/initscripts/init.d/apache
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
12 boot_mesg
"Starting Apache daemon..."
13 if [ -f /etc
/httpd
/server.key
-a -f /etc
/httpd
/server.crt
-a -f /etc
/httpd
/server.csr
]; then
14 /usr
/local
/bin
/httpscert
read >/dev
/null
2>&1
16 /usr
/local
/bin
/httpscert new
>/dev
/null
2>&1
18 /usr
/sbin
/apachectl
-k start
23 boot_mesg
"Stopping Apache daemon..."
24 /usr
/sbin
/apachectl
-k stop
29 boot_mesg
"Restarting Apache daemon..."
30 /usr
/sbin
/apachectl
-k restart
35 statusproc
/usr
/sbin
/httpd
39 echo "Usage: $0 {start|stop|restart|status}"
44 # End $rc_base/init.d/apache