Skip to content

Commit

Permalink
[fix] alternc.install must kill apache2 since jessie is broken here...
Browse files Browse the repository at this point in the history
  • Loading branch information
vincib committed Oct 8, 2017
1 parent 0b91195 commit bd60767
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jessie/alternc.install
Original file line number Diff line number Diff line change
Expand Up @@ -612,14 +612,18 @@ run-parts --arg=before-reload /usr/lib/alternc/install.d
#######################################################################
# 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
done

# We should restart apaches after all configuration stuff ...
for service in $SERVICES; do
test -x /etc/init.d/$service && invoke-rc.d $service stop || true
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
test -x /etc/init.d/$service && invoke-rc.d $service start || true
done
Expand Down

0 comments on commit bd60767

Please sign in to comment.