summaryrefslogtreecommitdiff
path: root/user/elogind/elogind.initd
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2020-07-25 02:19:21 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2020-07-25 02:29:48 +0000
commit9d3f5e4a81522a7459266b3ba975a70447451ce0 (patch)
treeea037269d3653e30b9f58a761a5657eedd6e9deb /user/elogind/elogind.initd
parent6b9635f493367d712260a86500518448691e1b9d (diff)
downloadpackages-9d3f5e4a81522a7459266b3ba975a70447451ce0.tar.gz
packages-9d3f5e4a81522a7459266b3ba975a70447451ce0.tar.bz2
packages-9d3f5e4a81522a7459266b3ba975a70447451ce0.tar.xz
packages-9d3f5e4a81522a7459266b3ba975a70447451ce0.zip
user/elogind: New package
Diffstat (limited to 'user/elogind/elogind.initd')
-rw-r--r--user/elogind/elogind.initd26
1 files changed, 26 insertions, 0 deletions
diff --git a/user/elogind/elogind.initd b/user/elogind/elogind.initd
new file mode 100644
index 000000000..ab6a3905c
--- /dev/null
+++ b/user/elogind/elogind.initd
@@ -0,0 +1,26 @@
+#!/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
+ before sddm
+}
+
+start() {
+ ebegin "Starting elogind"
+
+ start-stop-daemon --start --quiet \
+ --pidfile "${ELOGIND_PIDFILE}" \
+ --exec /lib/elogind/elogind -- --daemon
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping elogind"
+ start-stop-daemon --stop --quiet --pidfile "${ELOGIND_PIDFILE}"
+ eend $?
+}