From 6891fd8991cd2fdf2448c23d57b71176a1275316 Mon Sep 17 00:00:00 2001 From: iceBear67 Date: Thu, 9 Jul 2026 00:09:13 +0800 Subject: [PATCH] add supervisor for bubble --- image/overlay/etc/init.d/auth-server | 1 + image/overlay/etc/init.d/bubble | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/image/overlay/etc/init.d/auth-server b/image/overlay/etc/init.d/auth-server index 8ede4d4..4d2a803 100755 --- a/image/overlay/etc/init.d/auth-server +++ b/image/overlay/etc/init.d/auth-server @@ -5,6 +5,7 @@ respawn_delay=5 command="/usr/bin/auth-server" command_args="-org _BUBBLE_AUTH_ORG_ -team _BUBBLE_AUTH_TEAM_ -gitea-url _BUBBLE_AUTH_GITEA_URL_" output_log="/data/auth-server.log" +error_log="/data/auth-server.err" pidfile="/run/${RC_SVCNAME}.pid" diff --git a/image/overlay/etc/init.d/bubble b/image/overlay/etc/init.d/bubble index 49ad1d6..83222c4 100755 --- a/image/overlay/etc/init.d/bubble +++ b/image/overlay/etc/init.d/bubble @@ -4,8 +4,11 @@ depend() { need docker tsdns } +supervisor="supervise-daemon" +restart_max=5 +restart_delay=10 command="/usr/bin/bubble" command_args="-config /daemon/config.yaml 2>&1" pidfile="/run/${RC_SVCNAME}.pid" -command_background=true output_log="/data/bubble.log" +error_log="/data/bubble.err" \ No newline at end of file