How to pause shutdown?

Steffen Barszus steffenbpunkt at googlemail.com
Tue Feb 22 21:26:51 UTC 2011


On Tue, 22 Feb 2011 12:52:12 -0800
Scott James Remnant <scott at netsplit.com> wrote:

> 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.

Not related to this list, should this not be possible to block it at
upower level right at the beginning ? - not to be discussed here - just
as idea 

> 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
> >




More information about the upstart-devel mailing list