/srv/irclogs.ubuntu.com/2007/10/27/#upstart.txt

ion_#define mygl_begin(mode) { for (int _mybl_begin_i = 0; _mybl_begin_i < 3; ++_mybl_begin_i) if (_mybl_begin_i == 0) glBegin (mode); else if (_mybl_begin_i == 2) glEnd (); else00:53
ion_mygl_begin (GL_TRIANGLES) { glVertex3f ... }00:53
ion_Thanks to libnih for inspiration.00:53
ion_+typos00:54
ArafangionHowdy guys, I'm using upstart for my (custom) distro, without sysv init. :)09:33
ArafangionJust wondering what are the common styles of handling 'shutdown' scripts are.09:34
ArafangionFor now, I've just got an 'onshutdown' job that is fired when recieving the 'shutdown' event, which contains a script that calls initctl a dozen times to stop a dozen other jobs that were started, but there has to be a better way.09:35
AlexExtremeI have a 'shutdown' job which does the proper shutdown (unmount filesystems, reboot/shutdown), which is started on the shutdown event09:36
AlexExtremethen, put this in the jobs you want to stop at shutdown: "stop on starting shutdown"09:36
ArafangionAlexExtreme: I'd rather not have to do the tasks sequentially. :(09:37
AlexExtremeyou don't have to09:37
AlexExtremehttp://ftp.frugalware.org/pub/other/upstart-jobs/upstart-jobs/jobs.d/shutdown09:38
ArafangionSeems that if I want concurrent, I really need a dozen jobs, all which listen to the shutdown event, and a final 'halt' script that is run after all of those are stopped.09:38
ArafangionHmm.09:38
ArafangionAhh, I'm not using runlevels.09:38
AlexExtremethe runlevels in that script are only used to determine whether to shutdown or reboot09:38
ArafangionBut I'll model something on that.09:39
ArafangionYeah, looks fairly generic, now that I actually read it.09:39
AlexExtremeall the jobs that need to stop at shutdown have "stop on starting shutdown"09:39
ArafangionWhat's all the "killall5" commands?09:39
ArafangionNot familiar with that.09:39
ArafangionIn what way is it different to 'killall'?09:39
AlexExtremenot exactly sure, it's provided by sysvinit, I just used it because the scripts I ported used it09:40
ArafangionI don't have sysvinit. :)  Anyway, thanks for that script, I'll do something very similar.09:41
ArafangionWhat would be very nice, though, would be to have an ability to do something like:09:42
Arafangionstart on no-jobs-starting-after shutdown09:43
ArafangionWhere that job will start after everything else that has started in response to shutdown has finished.09:43
ArafangionAnd one can then just add small scripts for particular services, such as databases, etc, which might take more than 2 seconds to finish.09:44

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