linamh/app-misc/irtrans-irserver/files/irtrans-server.initd

23 lines
577 B
Plaintext
Raw Permalink Normal View History

2023-02-17 11:39:04 +01:00
#!/sbin/openrc-run
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
provide lirc
}
start() {
ebegin "Starting IRTrans"
eval start-stop-daemon --start --quiet --exec /usr/bin/irserver --pidfile /var/run/irtrans-irserver.pid \
-- -logfile /var/log/irserver.log -loglevel "${LOGLEVEL}" -pidfile /var/run/irtrans-irserver.pid "${OPT}" "${IRDEVICE}"
eend $?
}
stop() {
ebegin "Stopping IRTrans"
start-stop-daemon --stop --quiet --pidfile /var/run/irtrans-irserver.pid
eend $?
}