14 lines
268 B
Bash
Executable File
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
|