Added restart script and fixed dockerfile and run to match docs

This commit is contained in:
2025-03-01 13:29:17 +01:00
parent 1d5b687e00
commit b7e95d7398
30 changed files with 3047 additions and 1640 deletions

11
scripts/restart.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
while true; do
PYTHONPATH="/root/sia:$PYTHONPATH" python3 -m sia
if [ $? -eq 42 ]; then
echo "SIA exited with code 42. Restarting."
else
echo "SIA exited with code $?. Not restarting."
break
fi
done