From: <st...@us...> - 2004-03-05 18:56:22
|
Update of /cvsroot/uts/uts/src/etc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32213 Added Files: camd teld Log Message: Added init scripts for loadind teld and camd. --- NEW FILE: camd --- #!/bin/bash # # /etc/rc.d/init.d/camd # # Starts the CCD camera daemon # # chkconfig: 4 42 60 # description: Controls the CCD camera # processname: camd # Source function library. . /etc/rc.d/init.d/functions . /etc/rc.d/init.d/uts_defaults test -x $UTS_BIN/camd || exit 0 RETVAL=0 # # See how we were called. # case "$1" in start) # Check if camerad is already running if [ ! -f /var/lock/subsys/camd ]; then echo -n 'Starting camd daemon: ' $UTS_BIN/camd & RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/camd echo fi ;; stop) echo -n 'Stopping camd daemon: ' killproc $UTS_BIN/camd RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/camd echo ;; reload|restart) $0 stop $0 start RETVAL=$? ;; status) status $UTS_BIN/camd RETVAL=$? ;; *) echo "Usage: /etc/rc.d/init.d/camd {start|stop|restart|reload|status}" exit 1 esac exit $RETVAL --- NEW FILE: teld --- #!/bin/bash # # /etc/rc.d/init.d/teld # # Starts the Telescope daemon # # chkconfig: 4 43 60 # description: Controls thje telescope. # processname: Spm # Source function library. . /etc/rc.d/init.d/functions . /etc/rc.d/init.d/uts_defaults test -x $UTS_BIN/teld || exit 0 RETVAL=0 # # See how we were called. # case "$1" in start) # Check if teld is already running if [ ! -f /var/lock/subsys/teld ]; then echo -n 'Starting Telescope daemon: ' $UTS_BIN/teld & RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/teld echo fi ;; stop) echo -n 'Stopping Telescope daemon: ' killproc $UTS_BIN/teld RETVAL=$? [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/teld echo ;; reload|restart) $0 stop $0 start RETVAL=$? ;; status) status $UTS_BIN/teld RETVAL=$? ;; *) echo "Usage: /etc/rc.d/init.d/teld {start|stop|restart|reload|status}" exit 1 esac exit $RETVAL |