Bug 24493 - a better shutdown api
Summary: a better shutdown api
Status: RESOLVED WONTFIX
Alias: None
Product: ConsoleKit
Classification: Unclassified
Component: Daemon (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: william.jon.mccann
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-12 21:18 UTC by Matthias Clasen
Modified: 2012-06-01 18:23 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
0001-Trivial-whitespace-fixup.patch (1.25 KB, patch)
2009-10-12 21:18 UTC, Matthias Clasen
Details | Splinter Review
0002-Allow-org.freedesktop.DBus.Properties-calls.patch (1.38 KB, patch)
2009-10-12 21:19 UTC, Matthias Clasen
Details | Splinter Review
0003-Unify-the-restart-and-stop-code-paths.patch (7.97 KB, patch)
2009-10-12 21:19 UTC, Matthias Clasen
Details | Splinter Review
0004-Document-the-CanRestart-and-CanStop-methods.patch (2.79 KB, patch)
2009-10-12 21:20 UTC, Matthias Clasen
Details | Splinter Review
0005-Add-a-Stopping-property.patch (6.35 KB, patch)
2009-10-12 21:20 UTC, Matthias Clasen
Details | Splinter Review
0006-Introduce-need_elevated_privileges.patch (1.19 KB, patch)
2009-10-12 21:20 UTC, Matthias Clasen
Details | Splinter Review
0007-Make-xsl-transformation-more-forgiving.patch (2.15 KB, patch)
2009-10-12 21:21 UTC, Matthias Clasen
Details | Splinter Review
0008-Introduce-Inhibitors.patch (23.22 KB, patch)
2009-10-12 21:21 UTC, Matthias Clasen
Details | Splinter Review
0009-Add-a-hash-table-for-inhibitors.patch (1.73 KB, patch)
2009-10-12 21:21 UTC, Matthias Clasen
Details | Splinter Review
0011-Add-initial-inhibit-api.patch (9.89 KB, patch)
2009-10-12 21:22 UTC, Matthias Clasen
Details | Splinter Review
0010-Add-cookie-generation.patch (1.17 KB, patch)
2009-10-12 21:22 UTC, Matthias Clasen
Details | Splinter Review
0012-Require-elevated-privileges-when-inhibitors-are-set.patch (946 bytes, patch)
2009-10-12 21:23 UTC, Matthias Clasen
Details | Splinter Review
0013-Add-more-inhibit-api.patch (6.31 KB, patch)
2009-10-12 21:23 UTC, Matthias Clasen
Details | Splinter Review
0014-Add-inhibitor-related-signals.patch (4.75 KB, patch)
2009-10-12 21:23 UTC, Matthias Clasen
Details | Splinter Review
0015-Remove-inhibitors-automatically.patch (1.68 KB, patch)
2009-10-12 21:24 UTC, Matthias Clasen
Details | Splinter Review
0016-Add-session-api-for-graceful-shutdown.patch (12.54 KB, patch)
2009-10-12 21:24 UTC, Matthias Clasen
Details | Splinter Review
0017-Refactor-get_polkit_permissions.patch (13.24 KB, patch)
2009-10-12 21:24 UTC, Matthias Clasen
Details | Splinter Review
0018-Introduce-QueryStop-and-CancelStop.patch (16.47 KB, patch)
2009-10-12 21:25 UTC, Matthias Clasen
Details | Splinter Review
0019-Add-a-timeout-for-QueryStop-responses.patch (3.67 KB, patch)
2009-10-12 21:25 UTC, Matthias Clasen
Details | Splinter Review
0020-Make-Stop-Restart-stop-all-sessions.patch (5.16 KB, patch)
2009-10-12 21:25 UTC, Matthias Clasen
Details | Splinter Review
0021-Add-docs.patch (3.69 KB, patch)
2009-10-12 21:26 UTC, Matthias Clasen
Details | Splinter Review
0001-Trivial-whitespace-fixup.patch (1.25 KB, patch)
2010-02-05 19:29 UTC, Matthias Clasen
Details | Splinter Review
0002-Allow-org.freedesktop.DBus.Properties-calls.patch (1.37 KB, patch)
2010-02-05 19:30 UTC, Matthias Clasen
Details | Splinter Review
0003-Unify-the-restart-and-stop-code-paths.patch (7.87 KB, patch)
2010-02-05 19:30 UTC, Matthias Clasen
Details | Splinter Review
0004-Document-the-CanRestart-and-CanStop-methods.patch (2.79 KB, patch)
2010-02-05 19:31 UTC, Matthias Clasen
Details | Splinter Review
0005-Add-a-Stopping-property.patch (6.34 KB, patch)
2010-02-05 19:32 UTC, Matthias Clasen
Details | Splinter Review
0006-Introduce-need_elevated_privileges.patch (1.19 KB, patch)
2010-02-05 19:32 UTC, Matthias Clasen
Details | Splinter Review
0007-Make-xsl-transformation-more-forgiving.patch (2.15 KB, patch)
2010-02-05 19:33 UTC, Matthias Clasen
Details | Splinter Review
0008-Introduce-Inhibitors.patch (3.63 KB, patch)
2010-02-05 19:33 UTC, Matthias Clasen
Details | Splinter Review
0009-Add-a-hash-table-for-inhibitors.patch (1.72 KB, patch)
2010-02-05 19:33 UTC, Matthias Clasen
Details | Splinter Review
0010-Add-cookie-generation.patch (1.17 KB, patch)
2010-02-05 19:34 UTC, Matthias Clasen
Details | Splinter Review
0011-Add-initial-inhibit-api.patch (9.24 KB, patch)
2010-02-05 19:34 UTC, Matthias Clasen
Details | Splinter Review
0012-Require-elevated-privileges-when-inhibitors-are-set.patch (941 bytes, patch)
2010-02-05 19:35 UTC, Matthias Clasen
Details | Splinter Review
0013-Add-more-inhibit-api.patch (6.30 KB, patch)
2010-02-05 19:35 UTC, Matthias Clasen
Details | Splinter Review
0014-Add-inhibitor-related-signals.patch (4.74 KB, patch)
2010-02-05 19:36 UTC, Matthias Clasen
Details | Splinter Review
0015-Remove-inhibitors-automatically.patch (1.67 KB, patch)
2010-02-05 19:37 UTC, Matthias Clasen
Details | Splinter Review
0016-Add-session-api-for-graceful-shutdown.patch (12.53 KB, patch)
2010-02-05 19:37 UTC, Matthias Clasen
Details | Splinter Review
0017-Refactor-get_polkit_permissions.patch (13.16 KB, patch)
2010-02-05 19:38 UTC, Matthias Clasen
Details | Splinter Review
0018-Introduce-QueryStop-and-CancelStop.patch (16.47 KB, patch)
2010-02-05 19:38 UTC, Matthias Clasen
Details | Splinter Review
0019-Add-a-timeout-for-QueryStop-responses.patch (3.67 KB, patch)
2010-02-05 19:39 UTC, Matthias Clasen
Details | Splinter Review
0020-Make-Stop-Restart-stop-all-sessions.patch (5.19 KB, patch)
2010-02-05 19:39 UTC, Matthias Clasen
Details | Splinter Review
0021-Add-docs.patch (3.68 KB, patch)
2010-02-05 19:40 UTC, Matthias Clasen
Details | Splinter Review
0022-Misc-fixes.patch (8.65 KB, patch)
2010-02-05 19:40 UTC, Matthias Clasen
Details | Splinter Review
Fixes to the handling of jit inhibitors (4.83 KB, patch)
2010-02-07 20:16 UTC, Matthias Clasen
Details | Splinter Review
Don't forget to emit Session::CancelStop (2.39 KB, patch)
2010-02-08 05:16 UTC, Matthias Clasen
Details | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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.