diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-06-03 17:17:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-06-03 17:17:15 +0100 |
commit | ef4b930bd93d8badc6115d167318af2211c3b90f (patch) | |
tree | bde3cec71ff6db9a662a937f67bb3109536e2a96 /sys-auth/elogind/files/elogind.init-r1 | |
parent | b37385361286b4381ed6649ba8679588a3ce5bc1 (diff) |
sys-auth/elogind : version bump
Diffstat (limited to 'sys-auth/elogind/files/elogind.init-r1')
-rw-r--r-- | sys-auth/elogind/files/elogind.init-r1 | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-auth/elogind/files/elogind.init-r1 b/sys-auth/elogind/files/elogind.init-r1 new file mode 100644 index 00000000..1cb5071c --- /dev/null +++ b/sys-auth/elogind/files/elogind.init-r1 @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need dbus + + # Make sure elogind is up before xdm starts any dm + before xdm + + use logger +} + +start() { + ebegin "Starting elogind" + + start-stop-daemon --start --quiet \ + --pidfile "${ELOGIND_PIDFILE}" \ + --exec "${ELOGIND_EXEC}" -- --daemon + eend $? +} + +stop() { + ebegin "Stopping elogind" + start-stop-daemon --stop --quiet --pidfile "${ELOGIND_PIDFILE}" + eend $? +} |