a whole bunch of things

This commit is contained in:
STEINNI
2026-06-21 21:08:04 +00:00
parent 01bf35a238
commit 1db846daa3
7 changed files with 56 additions and 38 deletions
+5 -1
View File
@@ -1,11 +1,15 @@
#!/bin/sh
set -a
. /etc/p42/secrets.env
set +a
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 &
node p42wssGateway.js --debug > wssGateway.log 2>&1 &
else
echo ''
echo 'Already running PID='"$pid"' (use stopWssGw.sh to stop it)'