no break in case
This commit is contained in:
parent
1180c15d03
commit
9a5f25461f
1 changed files with 0 additions and 3 deletions
|
@ -41,15 +41,12 @@ case "\$1" in
|
|||
'start')
|
||||
python /var/$PRGNAM/$PRGNAM.py &
|
||||
echo \$! > /var/run/$PRGNAM.pid
|
||||
break
|
||||
;;
|
||||
'stop')
|
||||
[ -e /var/run/$PRGNAM.pid ] && kill <(/var/run/$PRGNAM.pid)
|
||||
break
|
||||
;;
|
||||
'restart')
|
||||
\$0 stop && sleep 1 && \$0 start
|
||||
break
|
||||
;;
|
||||
esac
|
||||
EOF
|
||||
|
|
Loading…
Reference in a new issue