Files
P42_wssGateway/startWssGw.sh
T
2025-10-05 10:11:03 +00:00

14 lines
277 B
Bash
Executable File

#!/bin/sh
cd /opt/p42wssGateway/
pid=`ps -ef | grep p42wssGateway |grep -v grep | awk '{print $2}'`
if [ -z "$pid" ]
then
node p42wssGateway.js > wssGateway.log 2>&1 &
else
echo ''
echo 'Already running PID='"$pid"' (use stopWssGw.sh to stop it)'
echo ''
fi