fix: 重启信号

This commit is contained in:
TsMask
2024-03-21 10:47:26 +08:00
parent 8baca65cc1
commit 723c810b70

View File

@@ -244,7 +244,7 @@ func (s *SystemController) RebootApp(c *gin.Context) {
go func() {
_, err := cmd.ExecWithCheck("nohup", "sh", "-c", "sleep 2s && service omc restart", "> /dev/null 2>&1 &\n")
if err != nil {
fmt.Println(fmt.Sprintf("NE service reboot error %s", err.Error()))
fmt.Printf("NE service reboot error %s \n", err.Error())
return
}
}()