#!/bin/sh # # irbox: Starts the in.ivyd super-daemon for the ivyd Ivy relay # # Version: @(#) /etc/rc.d/init.d/irbox.init 1.1 # # chkconfig: - 97 03 # description: This is a daemon that works as a port server for ivyd, \ # a relay to Ivy for short-lived applications # processname: in.ivyd # config: # Source function library. . /etc/rc.d/init.d/functions # See how we were called. case "$1" in start) echo -n "Ivy daemon port server... " daemon in.ivyd -boot echo touch /var/lock/subsys/ivyd ;; stop) echo -n "Shutting down Ivy daemon port server " killproc in.ivyd rm -f /var/lock/subsys/ivyd echo ;; status) status in.ivyd ;; restart) $0 stop $0 start ;; *) echo "*** Usage: ivyd {start|stop|status|restart}" exit 1 esac exit 0