From 399e7c2dad24ef8f9047894eed176ce134716a74 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Thu, 21 Mar 2024 10:31:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=87=8D=E5=90=AF=E4=BF=A1=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/nms_cxy/controller/system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/nms_cxy/controller/system.go b/src/modules/nms_cxy/controller/system.go index b08d9ae..1405390 100644 --- a/src/modules/nms_cxy/controller/system.go +++ b/src/modules/nms_cxy/controller/system.go @@ -241,7 +241,7 @@ func (s *SystemController) RebootApp(c *gin.Context) { return } - _, err := cmd.ExecWithCheck("nohup", "sh", "-c", "sleep 2s && service omc restart", "&") + _, err := cmd.ExecWithCheck("nohup", "sh", "-c", "sleep 2s && service omc restart", "> /dev/null 2>&1 &\n") if err != nil { c.JSON(200, map[string]any{ "requestId": body.RequestId,