aboutsummaryrefslogtreecommitdiffstats
path: root/community/elogind/elogind.initd
blob: 7563fe93098bbcad4244d043f8a7f618d073a734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run
supervisor=supervise-daemon

name="System login manager"
description="System service that manages user logins"
description_reload="Reload configuration without exiting"

command=/usr/libexec/elogind/elogind

depend() {
	need dbus

	# Make sure we start before any other display manager
	before xdm lxdm sddm gdm
}

extra_started_commands="reload"

reload() {
	ebegin "Reloading configuration"
	$supervisor $RC_SVCNAME --signal HUP
	eend $?
}