/srv/irclogs.ubuntu.com/2008/11/13/#upstart.txt

sadmac2Keybuk: In the new model, we remove "stop on" events, but I think it might be useful to have a "fail on" so that when pid 1 notifies the state machine that a process fell over we can reflect this as an event16:49
Keybuk?16:50
sadmac2Keybuk: so where stop on says "stop this service when X happens" fail on would say "when X happens, the service is no longer running to to extenuating circumstances. Please update the state machine to reflect this"16:51
sadmac2we could even offer a script to run when this happens to cleanup any leftover post-crash bullshit (dead pidfiles, broken /var data, etc)\16:53
Keybukwhat would be an example use?16:56
sadmac2Keybuk: for the fail on event in general? just about anything. We start apache, apache crashes, we find out about it by an event and drop the apache state without running its falling edge code.16:57
Keybukbut we don't16:58
Keybukapache crashes directly affects the job16:58
Keybukit's not an event16:58
sadmac2Keybuk: if we have a separate pid 1 service mananger and state machine, then we have to communicate the change somehow to cause that effect.16:59
sadmac2Keybuk: this is one way of doing that16:59
arekmhi, I'm trying to use mingetty with upstart but it fails with: /sbin/mingetty[4965]: tty1: no controlling tty: Operation not permitted22:18
arekmmingetty tries to do: ioctl (fd, TIOCSCTTY, (void *) 1) == -122:18
arekmand is called just by: exec /sbin/mingetty --noclear tty122:18
arekmupstart 0.522:19
arekmhm, NEWS seems to be good source of info. Found "session leader" directive needed22:27

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