⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 motion.init-debian.in

📁 video motion detection of linux base
💻 IN
字号:
#! /bin/bash## motion	Start the motion detection .#NAME=motionPATH=/bin:/usr/bin:/sbin:/usr/sbinDAEMON=@BIN_PATH@/motionPIDFILE=/var/run/$NAME.pidtrap "" 1export LANG=Cexport PATHtest -f $DAEMON || exit 0case "$1" in  start)    echo "Starting motion detection : $NAME"    start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON    ;;  stop)    echo "Stopping motion detection : $NAME"    start-stop-daemon --stop --pidfile $PIDFILE --oknodo --exec $DAEMON --retry 30     ;;  status)    echo "Status motion detection : $NAME"    if (test -f $PIDFILE); then        echo -n "Running process for $NAME : "    	pidof $NAME      else    	echo "Stopped"    fi    ;;        reload-config)    echo "Reloading $NAME configuration"    start-stop-daemon --stop --pidfile $PIDFILE --signal HUP --exec $DAEMON    ;;  restart-motion)    echo "Restarting $NAME"    start-stop-daemon --stop --pidfile $PIDFILE --oknodo --exec $DAEMON  --retry 30    start-stop-daemon --start --pidfile $PIDFILE --exec $DAEMON    ;;  restart)    $0 restart-motion    exit $?    ;;  *)    echo "Usage: /etc/init.d/$NAME {start|stop|status|reload-config|restart}"    exit 1    ;;esacif [ $? == 0 ]; then	echo .	exit 0else	echo failed	exit 1fi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -