implement auto restart with supervise-daemon
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user