1 Shepherd and Mate: restore suspend/poweroff/reboot, automounting drives
2 =======================================================================
4 lightdm and Mate will offer that automatically or with a click on a
5 menu. But today they will ask directly systemd for these functions,
6 and that won't work with shepherd.
8 Package elogind is intended to help you in that case, but it has a
9 conflict with systemd (which has the competing executable
10 systemd-logind). In the case of running shepherd-debian with
11 systemd-sysv as the failsafe init system, this is not a real conflict,
12 so I offer also a modified elogind package (with dependencies
13 libpam-elogind and libelogind0) which you can install. It uses
14 alternatives to not clobber original systemd files, and elogind-daemon
17 In the case of Mate, you still have a polkit issue
18 (polkit-mate-authentication-agent-1 can't be launched, so no
19 authentication window). This can be solved by editing these files:
21 /usr/share/polkit-1/actions/org.freedesktop.login1.policy
23 /usr/share/polkit-1/actions/org.freedesktop.UDisks2.policy
25 and setting the appropriate "allow_any" and "allow_inactive" to
26 "yes". See files login1.patch and udisk2.patch for a minimal set of
29 For halt/reboot, you have also to add the following script in
30 /lib/elogind/system-shutdown:
33 if [ "$1" = "reboot" ]; then
35 elif [ "$1" = "poweroff" ]; then