#!/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 -b 143.196.53,143.196.1:2019 & echo touch /var/lock/subsys/irbox ;; stop) echo -n "Shutting down Infra-red Ivy driver: " killproc irbox rm -f /var/lock/subsys/irbox 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