I am searching for a POSIX command to shutdown a machine.
Is there a POSIX acceptable way to do this?
The commands I use to do this are not POSIX compatible (e.g., shutdown, reboot, halt or poweroff).
Systemd introduced systemctl to do this, but I am pretty sure that this is not POSIX, either.
Best Answer
No, POSIX does not care about the shutting down or rebooting of a Unix system, nor about how services are started at boot.
(from the Introduction section of the POSIX Base Definitions)
The
shutdown
command would fall into the "System configuration and resource availability" category, and it's not a tool that is important to application developers.The full POSIX standard is available online.