inits/layer/etc/init.d/dkl-user-services
2019-03-08 12:21:29 +11:00

31 lines
579 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Direktil user services."
pidfile=/run/direktil/services.pid
depend()
{
need dkl-default
}
start()
{
mkdir -p $(dirname $pidfile)
einfo "Starting Direktil services manager"
start-stop-daemon --start \
--pidfile $pidfile \
--background \
--exec "/sbin/dkl" \
-- init services
eend $? "Failed to start Direktil services manager"
}
stop()
{
einfo "Stopping Direktil services manager"
start-stop-daemon --stop --pidfile $pidfile
eend $? "Failed to stop Direktil services manager"
}