summaryrefslogtreecommitdiff
path: root/app-misc/openhab-bin/files/openhab.initd
blob: a5899b24994f3bf003cf44c51f0fa8f8633b7e19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/sbin/openrc-run

pidfile=/run/${SVCNAME}.pid

command_user="openhab:openhab"
command="/usr/bin/openhab"
command_args="daemon"
command_background=true

depend() {
	need net
}

stop() {
    ebegin "Stopping ${RC_SVCNAME}"
    ${command} stop
    eend $?
}