systemctl-exit
Exit user or container service manager
TLDR
Exit user service manager
SYNOPSIS
systemctl exit [EXITCODE_]
DESCRIPTION
systemctl exit asks the service manager to quit. When used with `--user`, it terminates the per-user systemd instance and all user services. When used without `--user` in a container, it cleanly shuts down the container.
On a regular system without `--user`, this is equivalent to `systemctl poweroff`.
PARAMETERS
--user
Exit the user service managerEXITCODE_
Optional exit code to return (integer)
CAVEATS
When exiting the user service manager, all user services are terminated. The exit code is passed to the process that started the service manager. Not typically useful on bare-metal systems outside of containers.
HISTORY
The exit subcommand supports clean shutdown of containerized systemd instances and user service managers, enabling proper service termination instead of forceful kills.
SEE ALSO
systemctl(1), systemctl-poweroff(1)
