diff options
author | damiano | 1999-04-26 15:26:06 +0000 |
---|---|---|
committer | damiano | 1999-04-26 15:26:06 +0000 |
commit | 4782c96923bd5cc9b072b0e672f1420c93fd19dd (patch) | |
tree | 87bf5d3a26976e95c188a94f06f6019b1ccd98a7 /debian/init.d | |
parent | 0a462da394768938733d34b4ca724fb9260be51e (diff) | |
download | irbox-4782c96923bd5cc9b072b0e672f1420c93fd19dd.zip irbox-4782c96923bd5cc9b072b0e672f1420c93fd19dd.tar.gz irbox-4782c96923bd5cc9b072b0e672f1420c93fd19dd.tar.bz2 irbox-4782c96923bd5cc9b072b0e672f1420c93fd19dd.tar.xz |
Debianisation
Diffstat (limited to 'debian/init.d')
-rwxr-xr-x | debian/init.d | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/init.d b/debian/init.d new file mode 100755 index 0000000..cfb2341 --- /dev/null +++ b/debian/init.d @@ -0,0 +1,39 @@ +#!/bin/sh +# +# irbox: Starts the irbox Ivy agent +# +# chkconfig: - 98 02 +# description: This is a daemon that drives an Irman infra-red device and \ +# emits its events on an Ivy bus +# processname: irbox +# config: /etc/irbox.conf + + +test -f /usr/bin/irbox || exit 0 + +# See how we were called. +case "$1" in + start) + echo -n "Infra-red Ivy driver... " + start-stop-daemon --start --exec /usr/bin/irbox -- -b 143.196.53,143.196.1:2019 & + echo "." + ;; + stop) + echo -n "Shutting down Infra-red Ivy driver: " + start-stop-daemon --stop --quiet --exec /usr/bin/irbox + echo + ;; + reload) + start-stop-daemon --stop --quiet --signal 1 --exec /usr/bin/irbox + ;; + restart) + start-stop-daemon --stop --quiet --exec /usr/bin/irbox + start-stop-daemon --start --exec /usr/bin/irbox -- -b 143.196.53,143.196.1:2019 & + ;; + *) + echo "*** Usage: irbox {start|stop|restart|reload}" + exit 1 +esac + +exit 0 + |