optcam
上传用户:qdrechuli
上传日期:2022-08-01
资源大小:917k
文件大小:1k
- #!/bin/sh
- #
- # description: Net-Cam IP Video Surveillance Server
- #
- # File : netcam
- #
- # Author : Jean Pierre Cordeiro (jean-pierre.cordeiro@lefil.com)
- #
- # Changelog :
- #
- # 2002-10-09 Jean Pierre Cordeiro (jean-pierre.cordeiro@lefil.com)
- # - Creation
- #
- # Description: Starts and stops the Net-Cam Server
- #
- # Source function library
- if [ -f /etc/rc.d/init.d/functions ]; then
- . /etc/rc.d/init.d/functions
- elif [ -f /etc/init.d/functions ]; then
- . /etc/init.d/functions
- fi
- OptCamBin=/opt/NetAdmin/Net-Cam/bin/OptCam.pl
- # Check that optcam exists.
- test -f $OptCamBin || exit 0
- # See how we were called.
- case "$1" in
- start)
- echo "Starting Net-Cam Server: optcam"
- daemon $OptCamBin
- ;;
- stop)
- echo "Stopping Net-Cam Server: optcam"
- killproc $OptCamBin
- ;;
- status)
- status $OptCamBin
- ;;
- restart)
- $0 stop
- $0 start
- ;;
- *)
- echo "Usage: optcam {start|stop|restart|status}"
- exit 1
- ;;
- esac
- # End of this script