aboutsummaryrefslogtreecommitdiff
path: root/lightsd.openrc
blob: 2d1e0d7b856f16692719992bc8f37f90548d3ea9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run
#init script of lightsd for OpenRC
depend()
{
	need sysfs dev-mount
}
start()
{
	ebegin "Starting lightsd"
	start-stop-daemon -S -b -m -p /run/lightsd.pid -x /usr/bin/lightsd
	eend $?
}
stop()
{
	ebegin "Stopping lightsd"
	start-stop-daemon -s SIGTERM -p /run/lightsd.pid -x /usr/bin/lightsd
	eend $?
}