Fix to avoid db connection refused

This commit is contained in:
Per Qvarforth 2025-01-08 22:58:56 +01:00
parent 9f88dd7139
commit 012421e304
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ if ps -ef | grep -v grep | grep "bin/collector.py $CONFIGFILE $COLLECTORNUMBER"
else
CURRENTDIR=$(dirname $0)
sleep 10
sleep 30
export PYTHONPATH=$PYTHONPATH:$CURRENTDIR/../trackdirect
cd $CURRENTDIR/../..
$CURRENTDIR/ogn_devices_install.sh trackdirect db 5432

View File

@ -13,7 +13,7 @@ if ps -eo pid,pgid,cmd | grep -v grep | grep "bin/wsserver.py --config $CONFIGFI
else
CURRENTDIR=$(dirname $0)
sleep 10
sleep 30
export PYTHONPATH=$PYTHONPATH:$CURRENTDIR/../trackdirect
cd $CURRENTDIR/../..
python $CURRENTDIR/../bin/wsserver.py --config $CONFIGFILE