-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
shutdown/notify: allow custom implementations
The current shutdown and notify logic in pebble is designed with the assumption that it will run under systemd, or at least that some systemd components, such as shutdown, is installed. Allow custom flavours of pebble to change the default assumptions. - The daemon now defines an notification and shutdown interface, and configures the default implementation to use systemd. - The shutdown logic (of which we currently only support reboot) is moved to the systemd package, as its based on systemd. - Two globals daemon.Notify and daemon.Shutdown now provides a way to override the defaults.
- Loading branch information
Showing
7 changed files
with
195 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.