gentoo-ebuilds/app-misc/openhab-bin/files/openhab.initd
Florian Schmaus e765c8b508
app-misc/openhab-bin: add support for OpenRC
Thanks to Xavier Miller for the initial patches.

Closes: https://bugs.gentoo.org/936265
Signed-off-by: Florian Schmaus <flow@gentoo.org>
2024-07-25 09:20:39 +02:00

18 lines
257 B
Text

#!/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 $?
}