From ff860a8c4e05d04ba556bd3c3d06e708c76ff335 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 9 Jan 2026 23:31:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=8D=E5=8A=A1=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/service/cli.go | 6 +++--- pkg/tools/tools.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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 是否中国大陆