mirror of
https://github.com/acepanel/panel.git
synced 2026-02-07 16:47:14 +08:00
feat: 优化 supervisor 配置保存
This commit is contained in:
@@ -302,9 +302,7 @@ func (r *SupervisorController) SaveProcessConfig(ctx http.Context) http.Response
|
||||
if out, err := tools.Exec(`supervisorctl update`); err != nil {
|
||||
return controllers.Error(ctx, http.StatusInternalServerError, out)
|
||||
}
|
||||
if out, err := tools.Exec(`supervisorctl start ` + process); err != nil {
|
||||
return controllers.Error(ctx, http.StatusInternalServerError, out)
|
||||
}
|
||||
_, _ = tools.Exec(`supervisorctl restart ` + process)
|
||||
|
||||
return controllers.Success(ctx, nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user