/srv/irclogs.ubuntu.com/2009/10/30/#upstart.txt

Diddleha Know how to make upstart run something at shutdown before the send kill signals etc take over and whack everythings ?02:42
Diddleha"Backup over the net at shutdown" kind of a thing.02:43
sadmac_tokyoDiddleha: that's more of a distro question. It will vary depending on how your distro uses upstart02:45
DiddlehaI have tested it on Fedora and Ubuntu02:45
sadmac_tokyoDiddleha: so you'd want to ask in your distro's channel02:45
sadmac_tokyoDiddleha: for fedora you'd define the job with start on starting killall02:46
DiddlehaS000 or S01 or S03 will get interrupted. Kany will also be.02:47
DiddlehaOn Fedora02:47
Diddleha1002:47
Diddlehain /etc/rc0.d02:47
DiddlehaOr S00 for that matter. /Hmm02:49
sadmac_tokyoDiddleha: so you tried it as a sysv script and had an issue?02:49
DiddlehaYeah02:49
sadmac_tokyoDiddleha: that should have worked02:51
DiddlehaThe script runs, but there seems to be no way of making upstart not initiate the other kill signals (killall and halt scripts) before my script has finished02:51
DiddlehaIts almost as if id require a "MustNotHaveBeenKilled: $network $local_fs" etc02:52
DiddlehaIm lost. Ive been at it for days02:52
sadmac_tokyoDiddleha: upstart just runs /etc/rc, which runs the halt scripts in serial02:53
sadmac_tokyoDiddleha: it must be the way your sysv job is written02:53
DiddlehaOh, its serial on shutdown and paralell/threaded on startup ?02:54
sadmac_tokyoDiddleha: everything in /etc/rc* is fully serial.02:55
sadmac_tokyoDiddleha: only new-style upstart jobs are ever parallel02:55
DiddlehaMjae02:55
DiddlehaYeah, mine are02:55
sadmac_tokyoyours are what?02:56
sadmac_tokyofor that matter, your what are what?02:56
DiddlehaIf anyone has an answer youll get credz in this: http://mange.dynalias.org/linux/gadmin-rsync/screenshots/gadmin-rsync-progress.png02:57
DiddlehaAdded a restore function, but the backup at shutdown requires something extra: http://mange.dynalias.org/linux/gadmin-rsync/devel/gadmin-rsync-0.1.5-beta14.tar.gz02:58
sadmac_tokyoDiddleha: if you're installing a sysv script in /etc/rc then you should be in a serial path02:58
Diddleharc0.d for shutdown you mean.03:00
sadmac_tokyoDiddleha: yes. if your new script is in there it should be in an order03:01
DiddlehaAlphabetical ? :)03:01
DiddlehaOr Numerical or Both ?03:01
sadmac_tokyoDiddleha: yes03:01
DiddlehaIm feeling boored now03:02
sadmac_tokyoDiddleha: well, alphanumerical. Its by filename03:02
DiddlehaNo, its both03:02
sadmac_tokyook03:03

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!