2023-02-17 11:39:04 +01:00
|
|
|
#!/sbin/openrc-run
|
2007-08-16 14:48:50 +02:00
|
|
|
# Copyright 1999-2007 Gentoo Foundation
|
2007-05-01 18:55:50 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
depend() {
|
2007-11-13 23:18:53 +01:00
|
|
|
need net
|
|
|
|
provide lirc
|
2007-05-01 18:55:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2007-11-13 23:18:53 +01:00
|
|
|
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 $?
|
2007-05-01 18:55:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2007-11-13 23:18:53 +01:00
|
|
|
ebegin "Stopping IRTrans"
|
|
|
|
start-stop-daemon --stop --quiet --pidfile /var/run/irtrans-irserver.pid
|
|
|
|
eend $?
|
|
|
|
}
|