Compare commits

...
2 Commits
Author SHA1 Message Date
iceBear67 91a1e55ec7 implement auto restart with supervise-daemon 2026-07-06 13:54:21 +08:00
iceBear67 1e57cb3090 Revert "use ping for connectivity checkers"
This reverts commit 29ee6c0bd5.
2026-07-06 13:52:22 +08:00
2 changed files with 7 additions and 34 deletions
+4 -18
View File
@@ -1,27 +1,13 @@
#!/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"
start_pre() {
ebegin "Waiting for network"
timeout=30
while [ $timeout -gt 0 ]; do
ip route | grep -q default && break
sleep 1
timeout=$((timeout-1))
done
ip route | grep -q default || return 1
eend 0
}
depend() {
need net
}
+3 -16
View File
@@ -4,22 +4,9 @@ depend() {
need docker net
}
start_pre() {
ebegin "Waiting for network"
timeout=30
while [ $timeout -gt 0 ]; do
ip route | grep -q default && break
sleep 1
timeout=$((timeout-1))
done
ip route | grep -q default || return 1
eend 0
}
supervisor="supervise-daemon"
respawn_delay=5
respawn_max=0
command="/usr/bin/tsdns"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"