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
supervisor="supervise-daemon"
respawn_max=0
respawn_delay=5
command="/usr/bin/auth-server"
command_background=true
command_args="-org _BUBBLE_AUTH_ORG_ -team _BUBBLE_AUTH_TEAM_ -gitea-url _BUBBLE_AUTH_GITEA_URL_ 2>&1"
command_args="-org _BUBBLE_AUTH_ORG_ -team _BUBBLE_AUTH_TEAM_ -gitea-url _BUBBLE_AUTH_GITEA_URL_"
output_log="/data/auth-server.log"
pidfile="/run/${RC_SVCNAME}.pid"