Files
cheatsheet-tldr/tldr/linux/systemctl-exit
2025-10-09 00:19:00 +00:00

22 lines
529 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# systemctl exit
> Ask the service manager to quit.
> More information: <https://www.freedesktop.org/software/systemd/man/systemctl.html#exit%20EXIT_CODE>.
- Exit the user service manager:
`systemctl exit --user`
- Exit the user service manager with a specific exit code:
`systemctl exit {{code}} --user`
- Ask the containers service manager to exit (equivalent of `systemctl poweroff` if not in a container):
`systemctl exit`