Add fork-based supervisor daemon for instant restart

This commit is contained in:
Enginex0
2026-02-05 23:57:24 +01:00
parent 593bcfef83
commit 9aa4a33c5e
5 changed files with 66 additions and 9 deletions
+2 -8
View File
@@ -1,11 +1,5 @@
DEBUG=false
MODDIR=${0%/*}
cd $MODDIR
while true; do
./daemon "$MODDIR" || exit 1
# ensure keystore initialized
sleep 2
done &
# Fork-based supervisor for instant restart
./supervisor ./daemon "$MODDIR" &