2025-12-16 10:20:31 -07:00
|
|
|
# systemctl exit
|
|
|
|
|
|
|
|
|
|
> Ask the service manager to quit.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#exit%20EXIT_CODE>.
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Exit the user service manager:
|
|
|
|
|
|
|
|
|
|
`systemctl exit --user`
|
|
|
|
|
|
|
|
|
|
- Exit the user service manager with a specific exit code:
|
|
|
|
|
|
|
|
|
|
`systemctl exit {{code}} --user`
|
|
|
|
|
|
|
|
|
|
- Ask the container's service manager to exit (equivalent of `systemctl poweroff` if not in a container):
|
|
|
|
|
|
|
|
|
|
`systemctl exit`
|