Files
P42_wssGateway/startWssGw.sh
T
STEINNI de69b3d4de 2nd
2025-09-11 20:50:34 +00:00

14 lines
268 B
Bash
Executable File

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