1st
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd /opt/p42api/
|
||||
|
||||
pid=`ps -ef | grep p42api |grep -v grep | awk '{print $2}'`
|
||||
if [ -z "$pid" ]
|
||||
then
|
||||
node p42api.js > p42api.log 2>&1 &
|
||||
else
|
||||
echo ''
|
||||
echo 'Already running PID='"$pid"' (use stopApi.sh to stop it)'
|
||||
echo ''
|
||||
fi
|
||||
Reference in New Issue
Block a user