Files
P42_godDaemons/GPS/startGps.sh
T
2026-06-12 17:05:35 +00:00

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