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

@@ -1,7 +1,9 @@
#!/sbin/openrc-run #!/sbin/openrc-run
supervisor="supervise-daemon"
respawn_max=0
respawn_delay=5
command="/usr/bin/auth-server" command="/usr/bin/auth-server"
command_background=true command_args="-org _BUBBLE_AUTH_ORG_ -team _BUBBLE_AUTH_TEAM_ -gitea-url _BUBBLE_AUTH_GITEA_URL_"
command_args="-org _BUBBLE_AUTH_ORG_ -team _BUBBLE_AUTH_TEAM_ -gitea-url _BUBBLE_AUTH_GITEA_URL_ 2>&1"
output_log="/data/auth-server.log" output_log="/data/auth-server.log"
pidfile="/run/${RC_SVCNAME}.pid" pidfile="/run/${RC_SVCNAME}.pid"

View File

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