]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
core181: stop udev and apache before replacing core181
authorArne Fitzenreiter <arne_f@ipfire.org>
Sat, 9 Dec 2023 08:38:28 +0000 (09:38 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sat, 9 Dec 2023 08:38:28 +0000 (09:38 +0100)
update udev and apache while the running result in a hanging state
that prevent restart and also save unmounting of "/" at reboot.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/core/181/update.sh

index 0dc22d12215870f342e12fe2dd70b7b6e55aac21..5248072dbda0ff6a9bb10c2540e7023b6ada9686 100644 (file)
@@ -84,6 +84,10 @@ rm -rvf \
        /boot/dtb-* \
        /lib/modules
 
+# Stop services
+/etc/init.d/udev stop
+/etc/init.d/apache stop
+
 # Extract files
 extract_files
 
@@ -109,8 +113,8 @@ ldconfig
 
 # Start services
 telinit u
-/etc/init.d/udev restart
-/etc/init.d/apache restart
+/etc/init.d/udev start
+/etc/init.d/apache start
 
 # Rebuild initial ramdisks
 dracut --regenerate-all --force