This is achieved by telling killproc which PIDs to wait for.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
. /etc/sysconfig/rc
. $rc_functions
+PIDFILE="/var/run/httpd.pid"
+
generate_certificates() {
if [ ! -f "/etc/httpd/server.key" ]; then
boot_mesg "Generating HTTPS RSA server key (this will take a moment)..."
stop)
boot_mesg "Stopping Apache daemon..."
- /usr/sbin/apachectl -k stop
- evaluate_retval
+ killproc /usr/sbin/httpd
;;
restart)