diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2017-01-14 13:11:02 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2017-01-14 20:25:00 +0100 |
commit | d0d899ac76be5a1b3be099faaefdfef273718930 (patch) | |
tree | b0abd2af3482cb247c96e7b1018f246c6a183580 /sys-auth/elogind/files/elogind.init | |
parent | profiles: Update solid-runtime comment in arm package.use.mask (diff) | |
download | gentoo-d0d899ac76be5a1b3be099faaefdfef273718930.tar.gz gentoo-d0d899ac76be5a1b3be099faaefdfef273718930.tar.bz2 gentoo-d0d899ac76be5a1b3be099faaefdfef273718930.zip |
sys-auth/elogind: New package
systemd's logind as a standalone package. Initial ebuild by
Alexey Shvetsov, improvements by Sven Eden, kensington and me.
Fix build with gperf-3.1 by backporting a systemd patch.
Gentoo-bug: 599474
Package-Manager: portage-2.3.0
Diffstat (limited to 'sys-auth/elogind/files/elogind.init')
-rw-r--r-- | sys-auth/elogind/files/elogind.init | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys-auth/elogind/files/elogind.init b/sys-auth/elogind/files/elogind.init new file mode 100644 index 000000000000..af7c82e1851f --- /dev/null +++ b/sys-auth/elogind/files/elogind.init @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +depend() { + need dbus + + # Make sure elogind is up before xdm starts any dm + before xdm +} + +start() { + ebegin "Starting elogind" + + # elogind needs a /run/systemd directory + if [[ ! -e /run/systemd ]]; then + mkdir -p /run/systemd + chmod 644 /run/systemd + fi + + start-stop-daemon --start --quiet --background \ + --make-pidfile --pidfile "${ELOGIND_PIDFILE}" \ + --exec "${ELOGIND_EXEC}" + eend $? +} + +stop() { + ebegin "Stopping elogind" + start-stop-daemon --stop --quiet --pidfile "${ELOGIND_PIDFILE}" + eend $? +} |