Files
binary-repo/sys/auth/elogind/elogind.initd
T
sulincix afb36a7181 update
* openrc update
* elogind update
* elogind service improvements
2024-01-20 14:35:31 +00:00

29 lines
591 B
Plaintext

#!/sbin/openrc-run
supervisor=supervise-daemon
name="System login manager"
description="System service that manages user logins"
description_reload="Reload configuration without exiting"
command=/usr/libexec/elogind/elogind
depend() {
need dbus
# Make sure we start before any other display manager
before display-manager
}
start_pre() {
# systemd is running stuff
checkpath --mode 0700 -d /run/systemd/system/
ln -s elogind /sys/fs/cgroup/systemd
}
extra_started_commands="reload"
reload() {
ebegin "Reloading configuration"
$supervisor $RC_SVCNAME --signal HUP
eend $?
}