22 lines
596 B
Plaintext
22 lines
596 B
Plaintext
|
#!/sbin/runscript
|
||
|
# Copyright 1999-2004 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: $
|
||
|
|
||
|
depend() {
|
||
|
need net
|
||
|
befor vdr
|
||
|
}
|
||
|
|
||
|
start() {
|
||
|
ebegin "Starting IRTrans"
|
||
|
eval start-stop-daemon --start --quiet --exec /opt/irtrans/server/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 --signal 2 --quiet --pidfile /var/run/irtrans/irserver.pid
|
||
|
eend $?
|
||
|
}
|