Skip to content

Commit

Permalink
Move remaining shutdown services to its own place
Browse files Browse the repository at this point in the history
  • Loading branch information
konimex committed Mar 27, 2018
1 parent f8a8bc6 commit 82bf65d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
12 changes: 1 addition & 11 deletions 3
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,4 @@ for f in /etc/runit/shutdown-services/*.sh; do
[ -r $f ] && . $f
done

sync

if [ -z "$VIRTUALIZATION" ]; then
deactivate_vgs
deactivate_crypt
if [ -e /run/runit/reboot ] && command -v kexec >/dev/null; then
msg "Triggering kexec..."
kexec -e 2>/dev/null
# not reached when kexec was successful.
fi
fi
msg "Stage 3 completed."
1 change: 1 addition & 0 deletions shutdown-services/97-mount-ro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ if [ -z "$VIRTUALIZATION" ]; then
msg "Remounting rootfs read-only..."
mount -o remount,ro /
fi
sync
9 changes: 9 additions & 0 deletions shutdown-services/98-deactivate-crypt.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if [ -z "$VIRTUALIZATION" ]; then
deactivate_vgs
deactivate_crypt
if [ -e /run/runit/reboot ] && command -v kexec >/dev/null; then
msg "Triggering kexec..."
kexec -e 2>/dev/null
# not reached when kexec was successful.
fi
fi

0 comments on commit 82bf65d

Please sign in to comment.