linamh/app-misc/irtrans-irserver/files/irtrans-server.initd
2007-07-30 08:54:45 +00:00

24 lines
584 B
Plaintext
Executable File

#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
before vdr
}
start() {
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 $?
}
stop() {
ebegin "Stopping IRTrans"
start-stop-daemon --stop --quiet --pidfile /var/run/irtrans-irserver.pid
eend $?
}