1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-22 17:35:35 +03:00

units: use systemctl exit to kill the user manager (#8648)

Use `systemctl --user --force exit` to implement the systemd-exit
user service.

This removes our dependence on an external `kill` binary and the
concerns about whether they recognize SIGRTMIN+n by name or what their
interpretation of SIGRTMIN is.

Tested: `systemctl --user start systemd-exit.service` kills the
  `systemd --user` instance for my user.
This commit is contained in:
Filipe Brandenburger 2018-04-04 02:14:37 -07:00 committed by Zbigniew Jędrzejewski-Szmek
parent 709e86f18f
commit add384dd4d
2 changed files with 1 additions and 2 deletions

View File

@ -563,7 +563,6 @@ splash_bmp = files('test/splash.bmp')
# /usr/sbin, /sbin, and fall back to the default from middle column.
progs = [['quotaon', '/usr/sbin/quotaon' ],
['quotacheck', '/usr/sbin/quotacheck' ],
['kill', '/usr/bin/kill' ],
['kmod', '/usr/bin/kmod' ],
['kexec', '/usr/sbin/kexec' ],
['sulogin', '/usr/sbin/sulogin' ],

View File

@ -16,4 +16,4 @@ After=shutdown.target
[Service]
Type=oneshot
ExecStart=@KILL@ -s 58 $MANAGERPID
ExecStart=@SYSTEMCTL@ --user --force exit