Skip to content

Commit 45af39f

Browse files
committed
fix: 启动 sing-box 时用 su 迁出冻结 cgroup
1 parent 990a0af commit 45af39f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/module/service.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ wait_for_boot
126126

127127
# 按配置决定是否开机自启服务
128128
if [ "$AUTO_START" = "1" ]; then
129-
sh "$MODDIR/scripts/core/service.sh" start
129+
su -c "sh \"$MODDIR/scripts/core/service.sh\" start"
130130
else
131131
log "INFO" "开机自启已禁用,跳过启动"
132132
fi

0 commit comments

Comments
 (0)