2007-05-01 18:55:50 +02:00
|
|
|
#!/sbin/runscript
|
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-08-16 14:48:50 +02:00
|
|
|
need net
|
|
|
|
before vdr
|
2007-05-01 18:55:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2007-08-16 14:48:50 +02:00
|
|
|
ebegin "Starting IRTrans"
|
|
|
|
eval start-stop-daemon --start --quiet --exec /usr/sbin/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-08-16 14:48:50 +02:00
|
|
|
ebegin "Stopping IRTrans"
|
|
|
|
start-stop-daemon --stop --quiet --pidfile /var/run/irtrans-irserver.pid
|
|
|
|
eend $?
|
|
|
|
}
|