As far as I'm aware, Ubuntu still uses SysV scripts for shutdown, so there's no reason the previous runlevel scripts should not work.<br><br><div class="gmail_quote">On Tue, Feb 22, 2011 at 12:07 PM, Henning Moll <span dir="ltr"><<a href="mailto:newsScott@gmx.de">newsScott@gmx.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<br>
<br>
i have a direct question to upstart, but please let me first give you some background information:<br>
<br>
on my ubuntu desktop i implemented a system to automatically backup my system on a daily basis via rsnapshot. The backup is started by anacron. While the backup is running, a lockfile is present.<br>
<br>
To avoid broken backups i tried to pause a user intended shutdown as long as the lockfile exists. Up to now i was able to achieve this by introducing some runlevel scripts (rc1.d/K12backup_wait and rc0.d/K12backup_wait). The script behind these links just waits until the lockfile is no longer valid. After this, the shutdown continued just as normal.<br>
<br>
Now that Ubuntu is using upstream more and more, i am not able to this the same way (i recently installed 10.10).<br>
<br>
Now my question: Is it possible to implement this with upstart? How?<br>
For my backup solution it is also neccessary that network (cable lan) and sshd stays intact.<br>
<br>
Best regards<br>
Henning<br>
<br>
--<br>
GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit<br>
gratis Handy-Flat! <a href="http://portal.gmx.net/de/go/dsl" target="_blank">http://portal.gmx.net/de/go/dsl</a><br>
<font color="#888888"><br>
--<br>
upstart-devel mailing list<br>
<a href="mailto:upstart-devel@lists.ubuntu.com">upstart-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/upstart-devel" target="_blank">https://lists.ubuntu.com/mailman/listinfo/upstart-devel</a><br>
</font></blockquote></div><br>