Create a gist now

Instantly share code, notes, and snippets.

anonymous /wait-for-backup.conf
Created Nov 13, 2015

What would you like to do?
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