diff options
Diffstat (limited to 'app-misc/irtrans-irserver/files/irtrans-server.initd')
-rw-r--r-- | app-misc/irtrans-irserver/files/irtrans-server.initd | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app-misc/irtrans-irserver/files/irtrans-server.initd b/app-misc/irtrans-irserver/files/irtrans-server.initd new file mode 100644 index 000000000000..58e164ec1190 --- /dev/null +++ b/app-misc/irtrans-irserver/files/irtrans-server.initd @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/irtrans-irserver/files/irtrans-server.initd,v 1.1 2007/08/16 14:07:42 hd_brummy Exp $ + +depend() { + need net + before vdr +} + +start() { + ebegin "Starting IRTrans" + eval start-stop-daemon --start --quiet --exec /usr/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 --quiet --pidfile /var/run/irtrans-irserver.pid + eend $? +} |