tkurbad-overlay/media-tv/tvheadend/files/tvheadend.initd

20 lines
375 B
Plaintext
Raw Normal View History

2020-09-03 10:18:42 +02:00
#!/sbin/openrc-run
depend() {
use net
}
start() {
ebegin "Starting Tvheadend"
start-stop-daemon --start --quiet --exec /usr/bin/tvheadend \
-- -f -C -u ${TVHEADEND_USER} -g ${TVHEADEND_GROUP} \
-c ${TVHEADEND_CONFIG} ${TVHEADEND_OPTIONS}
eend $?
}
stop() {
ebegin "Stopping Tvheadend"
start-stop-daemon --stop --quiet --pidfile /var/run/tvheadend.pid
eend $?
}