fix: 重启信号
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user