diff --git a/cmd/admin-service-restart.go b/cmd/admin-service-restart.go index 4036e9a1..84177bc4 100644 --- a/cmd/admin-service-restart.go +++ b/cmd/admin-service-restart.go @@ -59,7 +59,7 @@ type serviceRestartCommand struct { // String colorized service restart command message. func (s serviceRestartCommand) String() string { - return console.Colorize("ServiceRestart", "Restart command successfully sent to `"+s.ServerURL+"`. Type Ctrl-C or wait to see the status of the restart.") + return console.Colorize("ServiceRestart", "Restart command successfully sent to `"+s.ServerURL+"`. Type Ctrl-C to quit or wait to follow the status of the restart process.") } // JSON jsonified service restart command message. @@ -125,7 +125,7 @@ func mainAdminServiceRestart(ctx *cli.Context) error { printMsg(serviceRestartCommand{Status: "success", ServerURL: aliasedURL}) coloring := color.New(color.FgRed) - mark := "." + mark := "..." // Print restart progress printProgress := func() { @@ -134,6 +134,9 @@ func mainAdminServiceRestart(ctx *cli.Context) error { } } + printProgress() + mark = "." + for { select { case <-globalContext.Done():