summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Bornkessel <hd_brummy@gentoo.org>2007-08-16 14:07:42 +0000
committerJoerg Bornkessel <hd_brummy@gentoo.org>2007-08-16 14:07:42 +0000
commitea439a25d695008b398cef6eeae73a94a484e260 (patch)
tree760781f9b109d0bd714e42221341c14abc5eb7b5 /app-misc/irtrans-irserver/files/irtrans-server.initd
parentStable on sparc wrt #189096 (diff)
downloadhistorical-ea439a25d695008b398cef6eeae73a94a484e260.tar.gz
historical-ea439a25d695008b398cef6eeae73a94a484e260.tar.bz2
historical-ea439a25d695008b398cef6eeae73a94a484e260.zip
initial ebuild, thanks to M.Fetka ( proxied Maintainer ) and C.Heuchober on bug #167434
Package-Manager: portage-2.1.2.11
Diffstat (limited to 'app-misc/irtrans-irserver/files/irtrans-server.initd')
-rw-r--r--app-misc/irtrans-irserver/files/irtrans-server.initd22
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 $?
+}