diff --git a/fleetctl/stop.go b/fleetctl/stop.go index 7ffe26254..ab3c27d75 100644 --- a/fleetctl/stop.go +++ b/fleetctl/stop.go @@ -85,6 +85,11 @@ func runStopUnit(args []string) (exit int) { } exit = tryWaitForUnitStates(stopping, "stop", job.JobStateLoaded, getBlockAttempts(), os.Stdout) + if exit == 0 { + stderr("Successfully stopped units %v.", stopping) + } else { + stderr("Failed to stop units %v. exit == %d.", stopping, exit) + } return } diff --git a/fleetctl/unload.go b/fleetctl/unload.go index 5bdbff3be..dd1e067fc 100644 --- a/fleetctl/unload.go +++ b/fleetctl/unload.go @@ -66,6 +66,11 @@ func runUnloadUnit(args []string) (exit int) { } exit = tryWaitForUnitStates(wait, "unload", job.JobStateInactive, getBlockAttempts(), os.Stdout) + if exit == 0 { + stderr("Successfully unloaded units %v.", wait) + } else { + stderr("Failed to unload units %v. exit == %d.", wait, exit) + } return }