[17:22] <canci> I am trying to make a script that delays the shutdown until a specific task has completed.
[17:22] <canci> My current approach (to test this) looks like this: https://gist.github.com/anonymous/36ac46f826bf3eadf8b5
[17:22] <canci> However, shutdown/reboot will proceed roughly when the counter reaches 15. Any idea how to fix this?
[18:45] <belak> Is there a better way to do this? http://pastie.org/10555257