User:Johannbg/QA/Systemd/Shutdown

Name
shutdown — Halt, power-off or reboot the machine

Synopsis
shutdown [OPTIONS...] [now] [WALL...]

Description
shutdown may be used to halt, power-off or reboot the machine.

The first argument should be the string now which however is ignored by this implementation. Optionally, this may be followed by a wall message to be sent to all logged-in users before going down.

Options
The following options are understood:

--help Prints a short help text and exits.

-H, --halt Halt the machine.

-P, --poweroff Power-off the machine (the default).

-r, --reboot Reboot the machine.

-h Equivalent to --poweroff, unless --halt is specified.

-k Don't halt, power-off, reboot, just write wall message.

--no-wall Don't send wall message before halt, power-off, reboot.

Exit status

On success 0 is returned, a non-zero failure code otherwise.