getcam
上传用户: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
- GetCamBin=/opt/NetAdmin/Net-Cam/bin/GetCam.pl
- # Check that getcam exists.
- test -f $GetCamBin || exit 0
- # See how we were called.
- case "$1" in
- start)
- echo "Starting Net-Cam Server: getcam"
- daemon $GetCamBin
- ;;
- stop)
- echo "Stopping Net-Cam Server: getcam"
- killproc $GetCamBin
- ;;
- status)
- status $GetCamBin
- ;;
- restart)
- $0 stop
- $0 start
- ;;
- *)
- echo "Usage: getcam {start|stop|restart|status}"
- exit 1
- ;;
- esac
- # End of this script