https://github.com/suse/rebootmgr
https://github.com/suse/rebootmgr
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/suse/rebootmgr
- Owner: SUSE
- License: gpl-2.0
- Created: 2016-12-21T09:51:09.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-07T15:34:01.000Z (6 months ago)
- Last Synced: 2024-11-07T16:35:04.412Z (6 months ago)
- Language: C
- Size: 310 KB
- Stars: 25
- Watchers: 8
- Forks: 9
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS
- License: COPYING
Awesome Lists containing this project
README
# rebootmgr
RebootManager is a dbus service to execute a controlled reboot after updates in a defined maintenance window.If you updated a system with e.g. transactional updates or a kernel update was applied, you can tell rebootmgrd with rebootmgrctl, that the machine should be reboot at the next possible time. This can either be immediately or during a defined maintenance window or.
## Reboot Strategies
rebootmgr supports different strategies, when a reboot should be done:
* `instantly` - reboot immediately when the signal arrives.
* `maint-window` - reboot only during a specified maintenance window. If no window is specified, reboot immediately.
* `best-effort` - this is the default. If a maintenance window is specified, use `maint-window`. If no maintenance window is specified, reboot immediately (`instantly`).
* `off` - rebootmgr continues to run, but ignores all signals to reboot. Setting the strategy to `off` does not clear the maintenance window. If rebootmgr is enabled again, it will continue to use the old specified maintenance window.## Configuration example
File _/etc/rebootmgr.conf_
```
[rebootmgr]
window-start=3:30
window-duration=1h30m
strategy=best-effort
```## Checking if a reboot is requested
```bash
$ sudo rebootmgrctl status
Status: Reboot not requested
```