wok diff motion/stuff/init.d/motion @ rev 24919
updated motion (4.3.0 -> 4.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Apr 10 07:17:22 2022 +0100 (2022-04-10) |
parents | 7f188676b59c |
children | 67fca9298007 |
line diff
1.1 --- a/motion/stuff/init.d/motion Thu May 26 20:16:45 2016 +0300 1.2 +++ b/motion/stuff/init.d/motion Sun Apr 10 07:17:22 2022 +0100 1.3 @@ -11,8 +11,9 @@ 1.4 PIDFILE=/run/motion/motion.pid 1.5 1.6 case "$1" in 1.7 - start) 1.8 - if active_pidfile $PIDFILE motion ; then 1.9 + (start) 1.10 + if active_pidfile $PIDFILE motion 1.11 + then 1.12 _ '%s is already running.' $NAME 1.13 exit 1 1.14 fi 1.15 @@ -21,8 +22,9 @@ 1.16 $DAEMON -p $PIDFILE 1.17 status 1.18 ;; 1.19 - stop) 1.20 - if ! active_pidfile $PIDFILE motion ; then 1.21 + (stop) 1.22 + if ! active_pidfile $PIDFILE motion 1.23 + then 1.24 _ '%s is not running.' $NAME 1.25 exit 1 1.26 fi 1.27 @@ -31,8 +33,9 @@ 1.28 rm $PIDFILE 1.29 status 1.30 ;; 1.31 - restart) 1.32 - if ! active_pidfile $PIDFILE motion ; then 1.33 + (restart) 1.34 + if ! active_pidfile $PIDFILE motion 1.35 + then 1.36 echo "$NAME is not running." 1.37 exit 1 1.38 fi 1.39 @@ -43,10 +46,11 @@ 1.40 $DAEMON -p $PIDFILE 1.41 status 1.42 ;; 1.43 - *) 1.44 + (*) 1.45 emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]" 1.46 newline 1.47 - exit 1 ;; 1.48 + exit 1 1.49 + ;; 1.50 esac 1.51 1.52 exit 0