-- restart Yunhorn Gateway for modbus/RS485

This commit is contained in:
Yunhorn 2024-09-05 17:10:02 +08:00
parent b7859e763e
commit 7ee50726b4
9 changed files with 30370 additions and 0 deletions

BIN
GW Normal file

Binary file not shown.

BIN
GW_bak Normal file

Binary file not shown.

Binary file not shown.

9
run_scripts/check.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
GW=`ps -lef | grep GW | grep -v "grep"`
if [$GW -eq ""];then
echo "no runing"
nohup /usr/local/gateway/yunhorn-gw/run_scripts/do.sh &
echo "start GW"
else
echo "GW is runing"
fi

3
run_scripts/do.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
cd /usr/local/gateway/yunhorn-gw/
./GW 1 >./logs/access.log 2>./logs/run.log

View File

@ -0,0 +1,3 @@
#!/bin/bash
echo -e "*******************\t"`date`"\t****************" >>/usr/local/gateway/yunhorn-gw//logs/time_run.log
ps -eo pid,tty,user,comm,lstart,etime | grep GW | grep -v get >>/usr/local/gateway/yunhorn-gw/time_run.log

0
run_scripts/nohup.out Normal file
View File

30354
time_run.log Normal file

File diff suppressed because it is too large Load Diff

1
traffic Normal file
View File

@ -0,0 +1 @@
{"data":{"traffic":0},"status":200}