]>
git.ipfire.org Git - 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 if [ -f /etc
/httpd
/server.key
-a -f /etc
/httpd
/server.crt
-a -f /etc
/httpd
/server.csr
]; then
13 /usr
/local
/bin
/httpscert
read >/dev
/null
2>&1
15 boot_mesg
"Generating https host certificate... this may take some minutes..."
16 /usr
/local
/bin
/httpscert new
>/dev
/null
2>&1
19 boot_mesg
"Starting Apache daemon..."
20 /usr
/sbin
/apachectl
-k start
25 boot_mesg
"Stopping Apache daemon..."
26 /usr
/sbin
/apachectl
-k stop
31 boot_mesg
"Restarting Apache daemon..."
32 /usr
/sbin
/apachectl
-k restart
37 boot_mesg
"Reloading Apache daemon..."
38 /usr
/sbin
/apachectl
-k graceful
43 statusproc
/usr
/sbin
/httpd
47 echo "Usage: $0 {start|stop|restart|status}"
52 # End $rc_base/init.d/apache