Skip to content

Commit

Permalink
fix: stop relayer services during setup
Browse files Browse the repository at this point in the history
  • Loading branch information
artemijspavlovs committed Dec 16, 2024
1 parent 1e1adf9 commit 0eb5423
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/relayer/setup/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/dymensionxyz/roller/utils/rollapp"
rollapputils "github.com/dymensionxyz/roller/utils/rollapp"
sequencerutils "github.com/dymensionxyz/roller/utils/sequencer"
servicemanager "github.com/dymensionxyz/roller/utils/service_manager"
)

// TODO: cleanup required, a lot of duplicate code in this cmd
Expand All @@ -36,6 +37,13 @@ func Cmd() *cobra.Command {
cmd.Flag(initconfig.GlobalFlagNames.Home).Value.String(),
)

pterm.Info.Println("stopping relayer services, if any...")
err := servicemanager.StopSystemServices(consts.AllServices)
if err != nil {
pterm.Error.Println("failed to stop system services: ", err)
return
}

raData, hd, kb, err := getPreRunInfo(home)
if err != nil {
pterm.Error.Println("failed to run pre-flight checks: ", err)
Expand Down

0 comments on commit 0eb5423

Please sign in to comment.