💐 Sync 2026-09-10 14:49:21

This commit is contained in:
github-actions[bot] committed 2026-09-10 14:49:21 +08:00
1 parent 0e9e9c2496
commit 7b0b16dcd4
181 files changed
+23375 -22143

No files matched your search

+14 -11
View File
@@ -912,7 +912,7 @@ service_triggers() {
start_service() {
local init_cfg=
local enabled=1
local enabled=0
local stdout=1
local stderr=1
local respawn=1
@@ -925,17 +925,9 @@ start_service() {
config_foreach _find_init_section init
if [ -n "$init_cfg" ]; then
config_list_foreach "$init_cfg" conf_inc _append_conf_file
config_get_bool enabled "$init_cfg" enabled 1
config_get_bool stdout "$init_cfg" stdout 1
config_get_bool stderr "$init_cfg" stderr 1
config_get_bool respawn "$init_cfg" respawn 1
config_get run_user "$init_cfg" user
config_get run_group "$init_cfg" group
config_get_bool enabled "$init_cfg" enabled 0
fi
[ "$enabled" -eq 0 ] && return 1
[ "$enabled" -eq 1 ] || return 0
mkdir -p /var/etc
_TOML_ERR=0
@@ -962,6 +954,17 @@ start_service() {
} >> "$CONF_FILE" || return 1
[ "$_TOML_ERR" = "0" ] || return 1
if [ -n "$init_cfg" ]; then
config_list_foreach "$init_cfg" conf_inc _append_conf_file
[ "$_TOML_ERR" = "0" ] || return 1
config_get_bool stdout "$init_cfg" stdout 1
config_get_bool stderr "$init_cfg" stderr 1
config_get_bool respawn "$init_cfg" respawn 1
config_get run_user "$init_cfg" user
config_get run_group "$init_cfg" group
fi
{
config_foreach _emit_conf_section conf
} >> "$CONF_FILE" || return 1