/srv/irclogs.ubuntu.com/2007/12/20/#upstart.txt

foolanoih14:40
foolanohi14:40
Keybukhi14:42
foolanois there any way to be notfied when upstart decides to stop respawning a job because the respawning is too fast?15:39
Keybukstart on stopped foo failed respawn15:42
Keybuk(ie. the "stopped" event for "foo" (the job) will have "failed respawn" as arguments)15:43
foolanothx, gonna try that15:47
foolanoworks like a charm16:28
foolanothis namespace thing is great16:28
foolanoi lived in the past when i used runit :P16:29
foolanoone more thing:16:49
foolanoaccording to the doc: Respawning will not generate a special set of events, instead it will generate the same sequence as a restart: stopping, starting and then started.16:50
Keybukright16:50
Keybuksay squid crashes16:51
Keybukyou'll get16:51
Keybuk  stopping squid failed main16:51
Keybuk    EXIT_SIGNAL=SEGV16:51
Keybuk  starting squid16:51
Keybuk  started squid16:51
foolanook16:51
foolanoi'd need to distinguish between a restart from a crash and a restart forced by the user16:53
Keybukrestart from a crash will say "failed"16:53
Keybukrestart by user will say "ok"16:53
Keybukie.16:54
Keybuk  stopping squid ok16:54
Keybuk  starting squid16:54
Keybuk  started squid16:54
Keybuk(user runs "stop squid; start squid")16:54
Keybukit's ok, because it was expected to exit16:54
foolanogonna use that16:55
Keybukstart on stopping squid16:56
Keybukscript16:56
Keybuk  if [ "$2" = "ok" ]; then16:56
Keybuk    # normal restart16:56
Keybuk  elif [ "$2" = "failed" -a "$3" = "respawn" ]; then16:56
Keybuk    # respawn limit hit16:56
Keybuk  elif [ "$2" = "failed" ]; then16:56
Keybuk    # crashed or terminated16:56
Keybuk    # check $EXIT_STATUS or $EXIT_SIGNAL16:56
Keybuk  fi16:56
Keybukend script16:56
foolanogreat16:57
foolanothat's all i need :)16:57
foolanothx a lot 16:58
foolanoKeybuk: the above script never enters into the last elif17:25
foolanoif my daemon has the respawn option17:25
foolanoif i comment it out it enters17:25

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