mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 06:47:20 +08:00
fix: 服务名
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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 是否中国大陆
|
||||
|
||||
Reference in New Issue
Block a user