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

=== sadmac2_ is now known as sadmac2
wasabi_Heh. Nice. B5.15:07
sadmac2bingo?15:07
wasabi_Naw. The upstart 0.6.3 tagline.15:08
sadmac2ah yes15:08
* sadmac2 debates whether this is a bug: http://fpaste.org/xyZQ/18:00
* sadmac2 debates whether at 2am he really saw that...18:05
Steveegood evening, i've problems with upstart and the shutdown/reboot of the system ( without compatiblity mode )19:07
sadmac2Stevee: going to tell us about it or just dropping in to let us know? :P19:08
Steveeokay, my problem is i try to start the job shutdown19:09
Steveebut no services will be stopped19:10
Steveeat the end of the script19:10
Steveei add the following:19:10
Steveepost-stop script19:10
Steveehalt -p19:10
Steveeend script19:10
Steveethe system halts correctly19:10
Steveebut no services / running jobs will be stopped19:11
sadmac2Stevee: what makes you think they would?19:12
Steveehere you can see the script19:13
Steveev19:13
Steveev19:13
Steveehttp://nopaste.com/p/aUGp6c1ngb19:13
Steveeand the jobs stop on shutdown19:13
sadmac2Stevee: emits just says "this job may emit this event, so beware of race conditions." It doesn't actually cause the job to emit the event19:14
sadmac2Stevee: add a task stanza and an "exec initctl emit shutdown"19:14
sadmac2"exec initctl emit --no-wait shutdown"19:14
Steveeoh, okay19:15
Steveeso i didn't understand the emits command correctly19:15
Steveethanks a lot19:15
sadmac2np19:15
Steveenow it woks, the jobs get killed on shutdown19:18
Steveeone more question19:30
Steveethe shutdown binary shipped by upstart19:31
Steveecan i also use that for shutdown19:31
Stevee?19:31
Steveeor do i have to "start shutdown" on the shell ?19:31
sadmac2it won't run your shutdown job.19:32
sadmac2afaik19:32
sadmac2it does the sysv-compatible runlevel transition19:32
Steveeoh, okay19:33
Steveethe reboot biniary is the same for reboot or19:34
Steveeso i also need it ?19:34
Steveedon't need it19:35

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