[Merge] lp:~jamesodhunt/upstart/upstart-shutdown into lp:upstart

James Hunt james.hunt at canonical.com
Fri Feb 15 11:32:20 UTC 2013


James Hunt has proposed merging lp:~jamesodhunt/upstart/upstart-shutdown into lp:upstart.

Requested reviews:
  Upstart Reviewers (upstart-reviewers)

For more details, see:
https://code.launchpad.net/~jamesodhunt/upstart/upstart-shutdown/+merge/148676

This branch provides the Session Init shutdown facility.

= Session Init Shutdown as Result of Impending System Shutdown =

Sending SIGTERM to a Session Init is indicative of a system shutdown. In this scenario the Session Init will emit the 'session-end' event and immediately request all jobs stop.

The Session Init will (attempt) to wait for up to the maximum kill_timeout value specified in any running jobs .conf file (5 seconds by default) before they are forcibly killed (although note that system policy may not allow the Session Init to wait as long as it wishes).

= Session Init Shutdown as Result of Logout Request =

The branch also introduces an 'EndSession' D-Bus method which is designed to be called when the user wishes their session to be ended due to a 'logout' request.

In this scenario, the Session Init will emit the 'session-end' event and wait for up to 5 seconds for *new* jobs to react to this event. If no new jobs start or after 5 seconds, the final shutdown phase is entered where all running jobs are requested to stop and after the maximum kill_timeout value specified in any running jobs .conf file is reached (5 seconds by default), the Session Init will exit.
-- 
https://code.launchpad.net/~jamesodhunt/upstart/upstart-shutdown/+merge/148676
Your team Upstart Reviewers is requested to review the proposed merge of lp:~jamesodhunt/upstart/upstart-shutdown into lp:upstart.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: review-diff.txt
Type: text/x-diff
Size: 64110 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/upstart-devel/attachments/20130215/e861e5e2/attachment-0001.diff>


More information about the upstart-devel mailing list