14 lines
266 B
Bash
Executable File
14 lines
266 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd /opt/p42GodDaemons/GPS/
|
|
|
|
pid=`ps -ef | grep p42Gps |grep -v grep | awk '{print $2}'`
|
|
if [ -z "$pid" ]
|
|
then
|
|
node p42Gps.js --debug > gps.log 2>&1 &
|
|
else
|
|
echo ''
|
|
echo 'Already running PID='"$pid"' (use stopGps.sh to stop it)'
|
|
echo ''
|
|
fi
|