better restart with systemd & g1billet
This commit is contained in:
parent
68b351ca3d
commit
1cc89cf654
|
@ -20,11 +20,14 @@ rm -Rf ~/.zen/tmp/*
|
||||||
espeak "CODE git pull" > /dev/null 2>&1
|
espeak "CODE git pull" > /dev/null 2>&1
|
||||||
|
|
||||||
## PROCESS TW BACKOFFICE TREATMENT
|
## PROCESS TW BACKOFFICE TREATMENT
|
||||||
|
[[ -s ~/.zen/G1BILLET/G1BILLETS.sh ]] && cd ~/.zen/G1BILLET/ && git pull
|
||||||
|
|
||||||
cd ~/.zen/Astroport.ONE/
|
cd ~/.zen/Astroport.ONE/
|
||||||
git pull
|
git pull
|
||||||
|
|
||||||
## SOON /ipns/ Address !!!
|
## SOON /ipns/ Address !!!
|
||||||
|
|
||||||
espeak "20 HOURS 12 MINUTES. START NU ONE UPDATE" > /dev/null 2>&1
|
espeak "20 HOURS 12 MINUTES. ASTROBOT RUNNING." > /dev/null 2>&1
|
||||||
## Updating yt-dlp
|
## Updating yt-dlp
|
||||||
$MY_PATH/youtube-dl.sh
|
$MY_PATH/youtube-dl.sh
|
||||||
sudo youtube-dl -U
|
sudo youtube-dl -U
|
||||||
|
@ -58,7 +61,7 @@ echo "20H12 (♥‿‿♥) Execution time was $dur" seconds.
|
||||||
## MAIL LOG : support@qo-op.com
|
## MAIL LOG : support@qo-op.com
|
||||||
$MY_PATH/tools/mailjet.sh "support@g1sms.fr" "/tmp/20h12.log"
|
$MY_PATH/tools/mailjet.sh "support@g1sms.fr" "/tmp/20h12.log"
|
||||||
|
|
||||||
espeak "20 12 Storm & Thunder duration was $dur seconds" > /dev/null 2>&1
|
espeak "duration was $dur seconds" > /dev/null 2>&1
|
||||||
|
|
||||||
espeak "Restarting Astroport Station API" > /dev/null 2>&1
|
espeak "Restarting Astroport Station API" > /dev/null 2>&1
|
||||||
## CLOSING API PORT
|
## CLOSING API PORT
|
||||||
|
@ -71,7 +74,9 @@ if [[ ! -f /etc/systemd/system/astroport.service ]]; then
|
||||||
PID=$!
|
PID=$!
|
||||||
echo $PID > ~/.zen/.pid
|
echo $PID > ~/.zen/.pid
|
||||||
else
|
else
|
||||||
echo "systemd will restart..."
|
sudo systemctl restart astroport
|
||||||
|
[[ -s ~/.zen/G1BILLET/G1BILLETS.sh ]] && sudo systemctl restart g1billet
|
||||||
|
echo "systemd restart"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -100,7 +100,7 @@
|
||||||
background: black;
|
background: black;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 2%;
|
top: 2%;
|
||||||
left: 2%;
|
right: 3%;
|
||||||
width: 55%;
|
width: 55%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,8 +115,8 @@
|
||||||
#ainfo {
|
#ainfo {
|
||||||
background: grey;
|
background: grey;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 2%;
|
top: 1%;
|
||||||
right: 2%;
|
right: 1%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in New Issue