diff --git a/internal/service/cli.go b/internal/service/cli.go index 69c0f264..f735f275 100644 --- a/internal/service/cli.go +++ b/internal/service/cli.go @@ -73,7 +73,7 @@ func NewCliService(t *gotext.Locale, conf *config.Config, db *gorm.DB, appRepo b } func (s *CliService) Restart(ctx context.Context, cmd *cli.Command) error { - if err := systemctl.Restart("panel"); err != nil { + if err := systemctl.Restart("acepanel"); err != nil { return err } @@ -82,7 +82,7 @@ func (s *CliService) Restart(ctx context.Context, cmd *cli.Command) error { } func (s *CliService) Stop(ctx context.Context, cmd *cli.Command) error { - if err := systemctl.Stop("panel"); err != nil { + if err := systemctl.Stop("acepanel"); err != nil { return err } @@ -91,7 +91,7 @@ func (s *CliService) Stop(ctx context.Context, cmd *cli.Command) error { } func (s *CliService) Start(ctx context.Context, cmd *cli.Command) error { - if err := systemctl.Start("panel"); err != nil { + if err := systemctl.Start("acepanel"); err != nil { return err } diff --git a/pkg/tools/tools.go b/pkg/tools/tools.go index 7faa6471..024d4255 100644 --- a/pkg/tools/tools.go +++ b/pkg/tools/tools.go @@ -85,7 +85,7 @@ func CurrentInfo(nets, disks []string) types.CurrentInfo { // RestartPanel 重启面板 func RestartPanel() { - _ = shell.ExecfAsync("sleep 1 && systemctl restart panel") + _ = shell.ExecfAsync("sleep 1 && systemctl restart acepanel") } // IsChina 是否中国大陆