Support for reboot, shutdown, etc
This module is assumes we are using solaris-like shutdown
New in version 2016.3.0.
Halt a running system
CLI Example:
salt '*' system.halt
Change the system runlevel on sysV compatible systems
CLI Example:
Init state
salt '*' system.init 3
Poweroff a running system
CLI Example:
salt '*' system.poweroff
Reboot the system
Optional wait time in seconds before the system will be rebooted.
Optional message to broadcast before rebooting.
CLI Example:
salt '*' system.reboot salt '*' system.reboot 60 "=== system upgraded ==="
Shutdown a running system
Optional wait time in seconds before the system will be shutdown.
Optional message to broadcast before rebooting.
CLI Example:
salt '*' system.shutdown salt '*' system.shutdown 60 "=== disk replacement ==="
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.solaris_system.html