Created
November 13, 2015 17:21
-
-
Save anonymous/36ac46f826bf3eadf8b5 to your computer and use it in GitHub Desktop.
upstart shutdown inhibit (doesn't work)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start on runlevel [016] | |
kill timeout 86400 | |
task | |
exec /usr/local/bin/wait-for-backup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
for i in $(seq 60); do | |
echo "Waiting for backup ($i/60)" >&2 | |
plymouth message --text="Waiting for backup to complete ($i/60)" | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment