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:
parent
709e86f18f
commit
add384dd4d
@ -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' ],
|
||||
|
@ -16,4 +16,4 @@ After=shutdown.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=@KILL@ -s 58 $MANAGERPID
|
||||
ExecStart=@SYSTEMCTL@ --user --force exit
|
||||
|
Loading…
Reference in New Issue
Block a user