X Tutup
Skip to content

Commit add384d

Browse files
filbrandenkeszybz
authored andcommitted
units: use systemctl exit to kill the user manager (systemd#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.
1 parent 709e86f commit add384d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

meson.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,6 @@ splash_bmp = files('test/splash.bmp')
563563
# /usr/sbin, /sbin, and fall back to the default from middle column.
564564
progs = [['quotaon', '/usr/sbin/quotaon' ],
565565
['quotacheck', '/usr/sbin/quotacheck' ],
566-
['kill', '/usr/bin/kill' ],
567566
['kmod', '/usr/bin/kmod' ],
568567
['kexec', '/usr/sbin/kexec' ],
569568
['sulogin', '/usr/sbin/sulogin' ],

units/user/systemd-exit.service.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ After=shutdown.target
1616

1717
[Service]
1818
Type=oneshot
19-
ExecStart=@KILL@ -s 58 $MANAGERPID
19+
ExecStart=@SYSTEMCTL@ --user --force exit

0 commit comments

Comments
 (0)
X Tutup