blob: 65a28e9c729cc91a7d0d7e0faf5d2fb7ddfca35d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/usr/bin/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 $?
}
|