-- restart Yunhorn Gateway for modbus/RS485
This commit is contained in:
parent
b7859e763e
commit
7ee50726b4
BIN
db/gateway.db
BIN
db/gateway.db
Binary file not shown.
|
@ -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
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
cd /usr/local/gateway/yunhorn-gw/
|
||||
./GW 1 >./logs/access.log 2>./logs/run.log
|
|
@ -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
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue