Bug 24493

Summary: a better shutdown api
Product: ConsoleKit Reporter: Matthias Clasen <mclasen>
Component: DaemonAssignee: william.jon.mccann
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: medium CC: bugzilla, pachoramos1, sascha-web-bugs.freedesktop.org
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: 0001-Trivial-whitespace-fixup.patch
0002-Allow-org.freedesktop.DBus.Properties-calls.patch
0003-Unify-the-restart-and-stop-code-paths.patch
0004-Document-the-CanRestart-and-CanStop-methods.patch
0005-Add-a-Stopping-property.patch
0006-Introduce-need_elevated_privileges.patch
0007-Make-xsl-transformation-more-forgiving.patch
0008-Introduce-Inhibitors.patch
0009-Add-a-hash-table-for-inhibitors.patch
0011-Add-initial-inhibit-api.patch
0010-Add-cookie-generation.patch
0012-Require-elevated-privileges-when-inhibitors-are-set.patch
0013-Add-more-inhibit-api.patch
0014-Add-inhibitor-related-signals.patch
0015-Remove-inhibitors-automatically.patch
0016-Add-session-api-for-graceful-shutdown.patch
0017-Refactor-get_polkit_permissions.patch
0018-Introduce-QueryStop-and-CancelStop.patch
0019-Add-a-timeout-for-QueryStop-responses.patch
0020-Make-Stop-Restart-stop-all-sessions.patch
0021-Add-docs.patch
0001-Trivial-whitespace-fixup.patch
0002-Allow-org.freedesktop.DBus.Properties-calls.patch
0003-Unify-the-restart-and-stop-code-paths.patch
0004-Document-the-CanRestart-and-CanStop-methods.patch
0005-Add-a-Stopping-property.patch
0006-Introduce-need_elevated_privileges.patch
0007-Make-xsl-transformation-more-forgiving.patch
0008-Introduce-Inhibitors.patch
0009-Add-a-hash-table-for-inhibitors.patch
0010-Add-cookie-generation.patch
0011-Add-initial-inhibit-api.patch
0012-Require-elevated-privileges-when-inhibitors-are-set.patch
0013-Add-more-inhibit-api.patch
0014-Add-inhibitor-related-signals.patch
0015-Remove-inhibitors-automatically.patch
0016-Add-session-api-for-graceful-shutdown.patch
0017-Refactor-get_polkit_permissions.patch
0018-Introduce-QueryStop-and-CancelStop.patch
0019-Add-a-timeout-for-QueryStop-responses.patch
0020-Make-Stop-Restart-stop-all-sessions.patch
0021-Add-docs.patch
0022-Misc-fixes.patch
Fixes to the handling of jit inhibitors
Don't forget to emit Session::CancelStop

Description Matthias Clasen 2009-10-12 21:18:43 UTC
Created attachment 30315 [details] [review]
0001-Trivial-whitespace-fixup.patch

Here is a patch series that implements a more versatile shutdown api as outlined on the gdm mailing list a while ago.
Comment 1 Matthias Clasen 2009-10-12 21:19:17 UTC
Created attachment 30316 [details] [review]
0002-Allow-org.freedesktop.DBus.Properties-calls.patch
Comment 2 Matthias Clasen 2009-10-12 21:19:39 UTC
Created attachment 30317 [details] [review]
0003-Unify-the-restart-and-stop-code-paths.patch
Comment 3 Matthias Clasen 2009-10-12 21:20:05 UTC
Created attachment 30318 [details] [review]
0004-Document-the-CanRestart-and-CanStop-methods.patch
Comment 4 Matthias Clasen 2009-10-12 21:20:25 UTC
Created attachment 30319 [details] [review]
0005-Add-a-Stopping-property.patch
Comment 5 Matthias Clasen 2009-10-12 21:20:43 UTC
Created attachment 30320 [details] [review]
0006-Introduce-need_elevated_privileges.patch
Comment 6 Matthias Clasen 2009-10-12 21:21:04 UTC
Created attachment 30321 [details] [review]
0007-Make-xsl-transformation-more-forgiving.patch
Comment 7 Matthias Clasen 2009-10-12 21:21:21 UTC
Created attachment 30322 [details] [review]
0008-Introduce-Inhibitors.patch
Comment 8 Matthias Clasen 2009-10-12 21:21:41 UTC
Created attachment 30323 [details] [review]
0009-Add-a-hash-table-for-inhibitors.patch
Comment 9 Matthias Clasen 2009-10-12 21:22:02 UTC
Created attachment 30324 [details] [review]
0011-Add-initial-inhibit-api.patch
Comment 10 Matthias Clasen 2009-10-12 21:22:39 UTC
Created attachment 30325 [details] [review]
0010-Add-cookie-generation.patch
Comment 11 Matthias Clasen 2009-10-12 21:23:02 UTC
Created attachment 30326 [details] [review]
0012-Require-elevated-privileges-when-inhibitors-are-set.patch
Comment 12 Matthias Clasen 2009-10-12 21:23:24 UTC
Created attachment 30327 [details] [review]
0013-Add-more-inhibit-api.patch
Comment 13 Matthias Clasen 2009-10-12 21:23:46 UTC
Created attachment 30328 [details] [review]
0014-Add-inhibitor-related-signals.patch
Comment 14 Matthias Clasen 2009-10-12 21:24:06 UTC
Created attachment 30329 [details] [review]
0015-Remove-inhibitors-automatically.patch
Comment 15 Matthias Clasen 2009-10-12 21:24:28 UTC
Created attachment 30330 [details] [review]
0016-Add-session-api-for-graceful-shutdown.patch
Comment 16 Matthias Clasen 2009-10-12 21:24:48 UTC
Created attachment 30331 [details] [review]
0017-Refactor-get_polkit_permissions.patch
Comment 17 Matthias Clasen 2009-10-12 21:25:08 UTC
Created attachment 30332 [details] [review]
0018-Introduce-QueryStop-and-CancelStop.patch
Comment 18 Matthias Clasen 2009-10-12 21:25:29 UTC
Created attachment 30333 [details] [review]
0019-Add-a-timeout-for-QueryStop-responses.patch
Comment 19 Matthias Clasen 2009-10-12 21:25:51 UTC
Created attachment 30334 [details] [review]
0020-Make-Stop-Restart-stop-all-sessions.patch
Comment 20 Matthias Clasen 2009-10-12 21:26:14 UTC
Created attachment 30335 [details] [review]
0021-Add-docs.patch
Comment 21 Matthias Clasen 2010-02-05 19:29:51 UTC
Created attachment 33102 [details] [review]
0001-Trivial-whitespace-fixup.patch
Comment 22 Matthias Clasen 2010-02-05 19:30:18 UTC
Created attachment 33103 [details] [review]
0002-Allow-org.freedesktop.DBus.Properties-calls.patch
Comment 23 Matthias Clasen 2010-02-05 19:30:42 UTC
Created attachment 33104 [details] [review]
0003-Unify-the-restart-and-stop-code-paths.patch
Comment 24 Matthias Clasen 2010-02-05 19:31:30 UTC
Created attachment 33105 [details] [review]
0004-Document-the-CanRestart-and-CanStop-methods.patch
Comment 25 Matthias Clasen 2010-02-05 19:32:09 UTC
Created attachment 33106 [details] [review]
0005-Add-a-Stopping-property.patch
Comment 26 Matthias Clasen 2010-02-05 19:32:47 UTC
Created attachment 33107 [details] [review]
0006-Introduce-need_elevated_privileges.patch
Comment 27 Matthias Clasen 2010-02-05 19:33:13 UTC
Created attachment 33108 [details] [review]
0007-Make-xsl-transformation-more-forgiving.patch
Comment 28 Matthias Clasen 2010-02-05 19:33:34 UTC
Created attachment 33109 [details] [review]
0008-Introduce-Inhibitors.patch
Comment 29 Matthias Clasen 2010-02-05 19:33:54 UTC
Created attachment 33110 [details] [review]
0009-Add-a-hash-table-for-inhibitors.patch
Comment 30 Matthias Clasen 2010-02-05 19:34:18 UTC
Created attachment 33111 [details] [review]
0010-Add-cookie-generation.patch
Comment 31 Matthias Clasen 2010-02-05 19:34:46 UTC
Created attachment 33112 [details] [review]
0011-Add-initial-inhibit-api.patch
Comment 32 Matthias Clasen 2010-02-05 19:35:11 UTC
Created attachment 33113 [details] [review]
0012-Require-elevated-privileges-when-inhibitors-are-set.patch
Comment 33 Matthias Clasen 2010-02-05 19:35:45 UTC
Created attachment 33114 [details] [review]
0013-Add-more-inhibit-api.patch
Comment 34 Matthias Clasen 2010-02-05 19:36:32 UTC
Created attachment 33115 [details] [review]
0014-Add-inhibitor-related-signals.patch
Comment 35 Matthias Clasen 2010-02-05 19:37:07 UTC
Created attachment 33116 [details] [review]
0015-Remove-inhibitors-automatically.patch
Comment 36 Matthias Clasen 2010-02-05 19:37:49 UTC
Created attachment 33117 [details] [review]
0016-Add-session-api-for-graceful-shutdown.patch
Comment 37 Matthias Clasen 2010-02-05 19:38:09 UTC
Created attachment 33118 [details] [review]
0017-Refactor-get_polkit_permissions.patch
Comment 38 Matthias Clasen 2010-02-05 19:38:50 UTC
Created attachment 33119 [details] [review]
0018-Introduce-QueryStop-and-CancelStop.patch
Comment 39 Matthias Clasen 2010-02-05 19:39:13 UTC
Created attachment 33120 [details] [review]
0019-Add-a-timeout-for-QueryStop-responses.patch
Comment 40 Matthias Clasen 2010-02-05 19:39:43 UTC
Created attachment 33121 [details] [review]
0020-Make-Stop-Restart-stop-all-sessions.patch
Comment 41 Matthias Clasen 2010-02-05 19:40:18 UTC
Created attachment 33122 [details] [review]
0021-Add-docs.patch
Comment 42 Matthias Clasen 2010-02-05 19:40:37 UTC
Created attachment 33123 [details] [review]
0022-Misc-fixes.patch
Comment 43 Matthias Clasen 2010-02-05 19:41:07 UTC
Patches rebased to current master, and some fixes added.
Comment 44 Matthias Clasen 2010-02-07 20:16:25 UTC
Created attachment 33143 [details] [review]
Fixes to the handling of jit inhibitors
Comment 45 Matthias Clasen 2010-02-08 05:16:18 UTC
Created attachment 33152 [details] [review]
Don't forget to emit Session::CancelStop
Comment 46 Matthias Clasen 2012-06-01 18:23:03 UTC
systemd now provides an inhibit api for shutdown and suspend that largely covers what I was hoping to achieve here.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.