mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 07:57:21 +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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user