summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Karbowski <slashbeast@gentoo.org>2021-01-10 14:13:20 +0100
committerPiotr Karbowski <slashbeast@gentoo.org>2021-01-10 14:14:56 +0100
commitc6735a700bb0328ca86877e7d5c1882707e70c6d (patch)
tree86e7577f08aeb11506bf940028b59e989a9657af /sys-auth/elogind/files
parentnet-vpn/httptunnel: cleanup old (diff)
downloadgentoo-c6735a700bb0328ca86877e7d5c1882707e70c6d.tar.gz
gentoo-c6735a700bb0328ca86877e7d5c1882707e70c6d.tar.bz2
gentoo-c6735a700bb0328ca86877e7d5c1882707e70c6d.zip
sys-auth/elogind: 246.9.1 rev bump with updated init script (use logger).
Forked out the init script so it won't affect older releases, although it's harmless, revbump should be done anyway to update it. Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
Diffstat (limited to 'sys-auth/elogind/files')
-rw-r--r--sys-auth/elogind/files/elogind.init-r127
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 000000000000..1cb5071c621e
--- /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 $?
+}