Compare commits
2
Commits
29ee6c0bd5
...
91a1e55ec7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
91a1e55ec7 | ||
|
|
1e57cb3090 |
@@ -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
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user