Skip to content

Instantly share code, notes, and snippets.

Created November 13, 2015 17:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/36ac46f826bf3eadf8b5 to your computer and use it in GitHub Desktop.
Save anonymous/36ac46f826bf3eadf8b5 to your computer and use it in GitHub Desktop.
upstart shutdown inhibit (doesn't work)
start on runlevel [016]
kill timeout 86400
task
exec /usr/local/bin/wait-for-backup.sh
#!/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