make sure pidfiles correspond to running version of bws

This commit is contained in:
Gregg Zigler 2015-07-20 11:56:57 -07:00
parent c064b5e041
commit 24c79119f1
1 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,12 @@ run_program ()
pidfile=$2
logfile=$3
if [ -e "$pidfile" ]
then
echo "$nodefile is already running. Run 'npm stop' if you wish to restart."
return 0
fi
nohup node $nodefile >> $logfile 2>&1 &
PID=$!
if [ $? -eq 0 ]