From 735e738413fc380187b163dc9c44ec6bed64d113 Mon Sep 17 00:00:00 2001 From: rowanchen-com Date: Tue, 17 Mar 2026 01:57:55 +0800 Subject: [PATCH] fix: use supervise-daemon for OpenRC to prevent blocking --- src/systemd.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/systemd.sh b/src/systemd.sh index 38b1ef1..5bbc7fc 100644 --- a/src/systemd.sh +++ b/src/systemd.sh @@ -77,6 +77,7 @@ install_service_openrc() { name="$is_core_name" description="$is_core_name Service" + command="$is_core_bin" command_args="run -c $is_config_json -C $is_conf_dir" command_background=true @@ -84,6 +85,8 @@ pidfile="/run/\${RC_SVCNAME}.pid" output_log="/var/log/$is_core/access.log" error_log="/var/log/$is_core/error.log" +supervisor=supervise-daemon + depend() { need net after firewall @@ -97,11 +100,14 @@ EOF name="Caddy" description="Caddy web server" + command="$is_caddy_bin" command_args="run --environ --config $is_caddyfile --adapter caddyfile" command_background=true pidfile="/run/\${RC_SVCNAME}.pid" +supervisor=supervise-daemon + depend() { need net after firewall