]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
core158: Fully terminate apache before restarting it
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Jul 2021 10:10:17 +0000 (10:10 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Jul 2021 10:10:17 +0000 (10:10 +0000)
Asking apache to restart itself fails when the binary is changed and
some symbols cannot be resolved. We therefore terminate all processes
and start them again.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/core/158/update.sh

index 2c6ef86559dbbc02f32ffa780bfc4221cb176b4b..a34c01bcc0f592f83735b3189556fbeb9b8a92e0 100644 (file)
@@ -74,10 +74,13 @@ ldconfig
 /usr/local/bin/filesystem-cleanup
 
 # Start services
-/etc/init.d/apache restart
 /etc/init.d/vnstat restart
 /etc/init.d/rngd restart
 
+# Restart apache
+/etc/init.d/apache stop
+/etc/init.d/apache start
+
 # This update needs a reboot...
 #touch /var/run/need_reboot