How to pause shutdown?

Scott James Remnant scott at netsplit.com
Tue Feb 22 20:52:12 UTC 2011


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.

On Tue, Feb 22, 2011 at 12:07 PM, Henning Moll <newsScott at gmx.de> wrote:

> Hi,
>
> i have a direct question to upstart, but please let me first give you some
> background information:
>
> 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.
>
> 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.
>
> Now that Ubuntu is using upstream more and more, i am not able to this the
> same way (i recently installed 10.10).
>
> Now my question: Is it possible to implement this with upstart? How?
> For my backup solution it is also neccessary that network (cable lan) and
> sshd stays intact.
>
> Best regards
> Henning
>
> --
> GMX DSL Doppel-Flat ab 19,99 Euro/mtl.! Jetzt mit
> gratis Handy-Flat! http://portal.gmx.net/de/go/dsl
>
> --
> upstart-devel mailing list
> upstart-devel at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/upstart-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20110222/ac83f571/attachment.html>


More information about the upstart-devel mailing list