make some changes to SinclairMATE image
This script will change the start.sh script that sinclairMATE images use, and it will add the restart script into cron so that the core auto-restarts every 5 days to prevent OOM errors on SinclairMATE.
This commit is contained in:
parent
5daf7db628
commit
d359843b9b
24
sinclair-mate-fixes.sh
Normal file
24
sinclair-mate-fixes.sh
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd
|
||||||
|
|
||||||
|
echo BACKING UP CRONTAB
|
||||||
|
|
||||||
|
crontab -l > cron.backup
|
||||||
|
|
||||||
|
echo MAKING CHANGES TO QORTAL START SCRIPT
|
||||||
|
|
||||||
|
cd qortal
|
||||||
|
wget https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/start-modified-memory-args.sh && mv start.sh original-start-script-sh && mv start-modified-memory-args.sh start.sh && chmod +x start.sh
|
||||||
|
cd
|
||||||
|
|
||||||
|
echo DOWNLOADING AUTO-RESTART SCRIPT AND CONFIGURING CRON TO USE IT
|
||||||
|
|
||||||
|
wget https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/restart-qortal.sh && chmod +x restart-qortal.sh
|
||||||
|
wget https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/restart-cron && contab < restart-cron
|
||||||
|
|
||||||
|
echo STOPPING QORTAL AND STARTING WITH NEW SCRIPT
|
||||||
|
|
||||||
|
cd qortal
|
||||||
|
./stop.sh && sleep 10 && kilall -9 java
|
||||||
|
./start.sh
|
Loading…
x
Reference in New Issue
Block a user