Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1577 from endocode/dongsu/fleetctl-stop-final-mes…
Browse files Browse the repository at this point in the history
…sage

fleetctl: print out result message explicitly
  • Loading branch information
Dongsu Park committed May 20, 2016
2 parents 3a974af + 2dbfa32 commit 6a92833
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fleetctl/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
5 changes: 5 additions & 0 deletions fleetctl/unload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 6a92833

Please sign in to comment.