snippetbashTip
systemctl exit — Ask the service manager to quit. More information: <https://www.freedesktop.org/software/systemd/man
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 --userExit the user service manager with a specific exit code:
systemctl exit {{code}} --userAsk the container's service manager to exit (equivalent of
systemctl poweroff if not in a container):systemctl exitCode Snippets
Exit the user service manager
systemctl exit --userExit the user service manager with a specific exit code
systemctl exit {{code}} --userAsk the container's service manager to exit (equivalent of `systemctl poweroff` if not in a container)
systemctl exitContext
tldr-pages: linux/systemctl exit
Revisions (0)
No revisions yet.