forked from STI/Astroport.ONE
Run Player & UPlanet refresh + stop or restart ipfs
This commit is contained in:
parent
cdb75fb8cd
commit
80f70d84b4
|
@ -77,15 +77,16 @@ echo "20H12 (♥‿‿♥) Execution time was $dur" seconds.
|
||||||
rm ~/.zen/game/players/localhost/latest
|
rm ~/.zen/game/players/localhost/latest
|
||||||
|
|
||||||
## 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@qo-op.com" "/tmp/20h12.log"
|
||||||
|
|
||||||
espeak "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 Services" > /dev/null 2>&1
|
||||||
## CLOSING API PORT
|
## CLOSING API PORT
|
||||||
[[ -s ~/.zen/.pid ]] && kill -9 $(cat ~/.zen/.pid) > /dev/null 2>&1
|
[[ -s ~/.zen/.pid ]] && kill -9 $(cat ~/.zen/.pid) > /dev/null 2>&1
|
||||||
## KILL ALL REMAINING nc
|
## KILL ALL REMAINING nc
|
||||||
killall nc 12345.sh
|
killall nc 12345.sh > /dev/null 2>&1
|
||||||
|
|
||||||
## OPEN API ENGINE
|
## OPEN API ENGINE
|
||||||
if [[ ! -f /etc/systemd/system/astroport.service ]]; then
|
if [[ ! -f /etc/systemd/system/astroport.service ]]; then
|
||||||
~/.zen/Astroport.ONE/12345.sh > ~/.zen/tmp/12345.log &
|
~/.zen/Astroport.ONE/12345.sh > ~/.zen/tmp/12345.log &
|
||||||
|
@ -94,10 +95,17 @@ if [[ ! -f /etc/systemd/system/astroport.service ]]; then
|
||||||
else
|
else
|
||||||
sudo systemctl restart astroport
|
sudo systemctl restart astroport
|
||||||
[[ -s ~/.zen/G1BILLET/G1BILLETS.sh ]] && sudo systemctl restart g1billet
|
[[ -s ~/.zen/G1BILLET/G1BILLETS.sh ]] && sudo systemctl restart g1billet
|
||||||
|
sudo systemctl restart ipfs
|
||||||
echo "Astroport processes systemd restart"
|
echo "Astroport processes systemd restart"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
echo $LOWMODE
|
|
||||||
|
echo "IPFS LOW MODE ?"
|
||||||
## IPFS DISABLED : STOP IT
|
## IPFS DISABLED : STOP IT
|
||||||
[[ $LOWMODE != "" ]] && sleep 360 && sudo systemctl stop ipfs
|
[[ $LOWMODE != "" ]] \
|
||||||
|
&& echo "$LOWMODE"
|
||||||
|
&& sleep 360 \
|
||||||
|
&& sudo systemctl stop ipfs \
|
||||||
|
|| sudo systemctl restart ipfs
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue