HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

systemctl exit — Ask the service manager to quit. More information: <https://www.freedesktop.org/software/systemd/man

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandaskclisystemctl exitservicequitmanager
linux

Problem

How to use the systemctl exit command: Ask the service manager to quit. More information: <https://www.freedesktop.org/software/systemd/man/latest/systemctl.html#exit%20EXIT_CODE>.

Solution

systemctl exit — Ask the service manager to quit. More information: <https://www.freedesktop.org/software/systemd/man/latest/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 container's service manager to exit (equivalent of systemctl poweroff if not in a container):
systemctl exit

Code Snippets

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

Context

tldr-pages: linux/systemctl exit

Revisions (0)

No revisions yet.