Sync with official service.sh but also tidy (#8)

Signed-off-by: Dakkshesh <beakthoven@gmail.com>
This commit is contained in:
Chris Renshaw
2025-08-06 21:01:52 +05:30
committed by Dakkshesh
parent 48b94e8670
commit 0ae8be899d
+5 -8
View File
@@ -4,11 +4,8 @@ MODDIR=${0%/*}
cd $MODDIR
(
while [ true ]; do
$MODDIR/daemon "$MODDIR"
if [ $? -ne 0 ]; then
exit 1
fi
done
) &
while true; do
./daemon "$MODDIR" || exit 1
# ensure keystore initialized
sleep 2
done &