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

24 lines
583 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-11 19:46:43 +02:00
eval start-stop-daemon --start --quiet --exec /usr/bin/irserver --pidfile /var/run/irtrans-irserver.pid \
2007-05-11 19:35:46 +02:00
-- -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 $?
}