diff options
author | jacomi | 1999-01-25 18:35:13 +0000 |
---|---|---|
committer | jacomi | 1999-01-25 18:35:13 +0000 |
commit | ca51f6abf6debc1b6718f59129886fea04ee12b0 (patch) | |
tree | b074cbd71c73bfa0d39a28f73e19cd8d28a653f6 /src/irbox.init | |
parent | f63e7d593f9a1ca8152ec8180ac052e75c892a60 (diff) | |
download | irbox-ca51f6abf6debc1b6718f59129886fea04ee12b0.zip irbox-ca51f6abf6debc1b6718f59129886fea04ee12b0.tar.gz irbox-ca51f6abf6debc1b6718f59129886fea04ee12b0.tar.bz2 irbox-ca51f6abf6debc1b6718f59129886fea04ee12b0.tar.xz |
new directory structure and data
Diffstat (limited to 'src/irbox.init')
-rwxr-xr-x | src/irbox.init | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/irbox.init b/src/irbox.init new file mode 100755 index 0000000..04d83f2 --- /dev/null +++ b/src/irbox.init @@ -0,0 +1,46 @@ +#!/bin/sh +# +# irbox: Starts the irbox Ivy agent +# +# Version: @(#) /etc/rc.d/init.d/irbox.init 1.0 +# +# 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 + +# Source function library. +. /etc/rc.d/init.d/functions + +# See how we were called. +case "$1" in + start) + echo -n "Infra-red Ivy driver... " + daemon irbox + echo + touch /var/lock/subsys/irbox + ;; + stop) + echo -n "Shutting down Infra-red Ivy driver: " + killproc irbox + rm -f /var/lock/subsys/ypbind + echo + ;; + status) + status irbox + ;; + reload) + killproc -HUP irbox + ;; + restart) + $0 stop + $0 start + ;; + *) + echo "*** Usage: irbox {start|stop|status|restart¦reload}" + exit 1 +esac + +exit 0 + |