minor changes into init script

legacy
Steve L. Nyemba 8 years ago
parent ad400e6646
commit 546f3afdb9

@ -15,7 +15,7 @@ stop(){
ps -eo pid,command |grep python |grep $PWD |grep -E "^ {0,}[0-9]+" -o |xargs kill -9
}
check(){
pid=`ps -eo pid,command |grep python |grep $PWD |grep -E "^ {0,}[0-9]+" -o`
pid=`ps -eo pid,command |grep python |grep $PWD |grep -E "^ {0,}[0-9]+" -o -m 1`
if [ "$pid" ]; then
echo "*** Online $pid"
else

Loading…
Cancel
Save