implement auto restart with supervise-daemon

This commit is contained in:
iceBear67
2026-07-06 13:54:21 +08:00
parent 1e57cb3090
commit 91a1e55ec7
2 changed files with 8 additions and 3 deletions

View File

@@ -4,6 +4,9 @@ depend() {
need docker net
}
supervisor="supervise-daemon"
respawn_delay=5
respawn_max=0
command="/usr/bin/tsdns"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"