mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-24 01:42:58 +02:00
initscripts: Correctly wait for Apache2 to terminate
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>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
21aee1688a
commit
1724e5ac0a
@@ -22,6 +22,8 @@
|
||||
. /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)..."
|
||||
@@ -86,8 +88,7 @@ case "$1" in
|
||||
|
||||
stop)
|
||||
boot_mesg "Stopping Apache daemon..."
|
||||
/usr/sbin/apachectl -k stop
|
||||
evaluate_retval
|
||||
killproc /usr/sbin/httpd
|
||||
;;
|
||||
|
||||
restart)
|
||||
|
||||
Reference in New Issue
Block a user