Activity log for bug #1021973

Date Who What changed Old value New value Message
2012-07-06 23:35:09 Victor Martinez bug added bug
2012-07-06 23:56:24 Victor Martinez description Due to Cerbere's current implementation, it doesn't make sense to restart it after it exits (even if it was signaled, etc.) This is Cerbere's lifecycle: 1) Register with session manager 2) Read stuff from settings 3) Load processes 4) Enter monitor state (not really, since this is asynchronously tied to each process) When Cerbere exits, it doesn't kill all the processes it spawned. Instead, these processes are kept alive, and become zombies since no one is watching them. Supposing Cerbere was killed, the following would happen: 1) Cerbere exits. The processes it spawned are still running 2) A new instance of Cerbere starts (thanks gnome-session!) 3) This new instance tries to load the processes again 4) Single-instance processes will crash, since another instance is already running 5) Enter the spawn => crash cycle until the max-crash-count value is reached for every process (UGH, this part sucks!) 6) Cerbere gives up and ends up running without monitoring a single process. So, we have and instance of it running without any purpose. For the Luna cycle, I would suggest leaving Cerbere as it is, and only changing the respective entries in the .desktop file: [Desktop File] X-GNOME-Autostart-Notify X-GNOME-AutoRestart Due to Cerbere's current implementation, it doesn't make sense to restart it after it exits (even if it was signaled, etc.) This is Cerbere's lifecycle: 1) Register with session manager 2) Read stuff from settings 3) Load processes 4) Enter monitor state (not really, since this is asynchronously tied to each process) When Cerbere exits, it doesn't kill all the processes it spawned. Instead, these processes are kept alive, and become zombies since no one is watching them. Supposing Cerbere was killed, the following would happen: 1) Cerbere exits. The processes it spawned are still running 2) A new instance of Cerbere starts (thanks gnome-session!) 3) This new instance tries to load the processes again 4) Single-instance processes will crash, since another instance is already running 5) Enter the spawn => crash cycle until the max-crash-count value is reached for every process (UGH, this part sucks!) 6) Cerbere gives up and ends up running without monitoring a single process (i.e. we have an instance of it running with no purpose). Since killing the processes Cerbere spawned along with it seems inappropriate to me, for the Luna cycle I would suggest leaving Cerbere as it is, and only changing the respective entries in the .desktop file: [Desktop File] X-GNOME-Autostart-Notify X-GNOME-AutoRestart
2012-07-07 08:44:07 Sergey "Shnatsel" Davidoff cerbere: status New Triaged
2012-07-09 04:36:53 Launchpad Janitor branch linked lp:cerbere
2012-07-09 06:13:19 Cody Garver cerbere: assignee Victor Eduardo (victored)
2012-07-09 06:13:23 Cody Garver cerbere: status Triaged Fix Committed
2012-07-09 06:13:25 Cody Garver cerbere: milestone luna-beta1
2012-07-11 23:45:51 Danielle Foré cerbere: status Fix Committed Fix Released