diff options
author | David P <megver83@parabola.nu> | 2019-11-13 18:59:34 -0300 |
---|---|---|
committer | David P <megver83@parabola.nu> | 2019-11-13 18:59:34 -0300 |
commit | 8df38ad4ea16fdb7502cd41a076e735d78a9ca18 (patch) | |
tree | 8ff71e01ff378224ca21b0cfe521e19a791d1c45 /nonsystemd/elogind/elogind.initd | |
parent | e0f289a70a7f05c2ed1024862d2d73d32205f08d (diff) | |
download | abslibre-8df38ad4ea16fdb7502cd41a076e735d78a9ca18.tar.gz abslibre-8df38ad4ea16fdb7502cd41a076e735d78a9ca18.tar.bz2 abslibre-8df38ad4ea16fdb7502cd41a076e735d78a9ca18.zip |
addpkg: nonsystemd/elogind 241.3-1
Signed-off-by: David P <megver83@parabola.nu>
Diffstat (limited to 'nonsystemd/elogind/elogind.initd')
-rw-r--r-- | nonsystemd/elogind/elogind.initd | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/nonsystemd/elogind/elogind.initd b/nonsystemd/elogind/elogind.initd new file mode 100644 index 000000000..3329699fc --- /dev/null +++ b/nonsystemd/elogind/elogind.initd @@ -0,0 +1,25 @@ +#!/usr/bin/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 +} + +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 $? +} |