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

22 lines
614 B
Plaintext
Raw Normal View History

2007-05-01 18:55:50 +02:00
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
2007-05-01 19:50:39 +02:00
before vdr
2007-05-01 18:55:50 +02:00
}
start() {
ebegin "Starting IRTrans"
2007-05-01 19:59:40 +02:00
eval start-stop-daemon --start --quiet --chdir /opt/irtrans/server --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}"
2007-05-01 18:55:50 +02:00
eend $?
}
stop() {
ebegin "Stopping IRTrans"
2007-05-01 19:57:40 +02:00
start-stop-daemon --stop --quiet --pidfile /var/run/irtrans-irserver.pid
2007-05-01 18:55:50 +02:00
eend $?
}