[fix] alternc.install must kill apache2 since jessie is broken here...

This commit is contained in:
Benjamin Sonntag 2017-10-08 14:35:47 +02:00
parent 0b9119503e
commit bd60767088
1 changed files with 5 additions and 1 deletions

View File

@ -612,7 +612,7 @@ run-parts --arg=before-reload /usr/lib/alternc/install.d
####################################################################### #######################################################################
# Reload services # Reload services
# #
for service in postfix apache2 dovecot cron proftpd ; do for service in postfix dovecot cron proftpd ; do
invoke-rc.d $service force-reload || true invoke-rc.d $service force-reload || true
done done
@ -620,6 +620,10 @@ done
for service in $SERVICES; do for service in $SERVICES; do
test -x /etc/init.d/$service && invoke-rc.d $service stop || true test -x /etc/init.d/$service && invoke-rc.d $service stop || true
done done
# on Jessie, apache2 does not stop/start properly due to "service" and "apache2ctl" having different behavior pid-file-wise
killall apache2
for service in $SERVICES; do for service in $SERVICES; do
test -x /etc/init.d/$service && invoke-rc.d $service start || true test -x /etc/init.d/$service && invoke-rc.d $service start || true
done done