Merge remote-tracking branch 'origin/master' into staging
[mirror/dsa-puppet.git] / modules / debian_org / files / molly-guard / 15-acquire-reboot-lock
index ebbac93..c97861b 100644 (file)
@@ -11,9 +11,8 @@ if ! flock --exclusive -w 0  3; then
 fi
 echo "Reboot lock acquired."
 
-ppid="$PPID"
 (
-       while kill -0 "$ppid" 2>/dev/null; do
+       while dsa-is-shutdown-scheduled; do
                sleep 1
        done
 ) &