Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Force the process to exit once it is done. Fixes #37.

This is issue in Clojure explains is related: http://dev.clojure.org/jira/browse/CLJ-959
  • Loading branch information...
commit 237270c12b6fb83c32bc0f53d2d0e0780a5ca69c 1 parent 9d6e47b
@tbatchelli tbatchelli authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/clj/backtype/storm/provision.clj
View
7 src/clj/backtype/storm/provision.clj
@@ -142,13 +142,16 @@
[name "Cluster name" "dev"]
[release "Release version" nil]]
- (cond
+ (cond
stop? (stop! aws name)
start? (start! aws name release)
upgrade? (upgrade! aws name release)
attach? (attach! aws name)
ips? (print-all-ips! aws name)
- :else (println "Must pass --start or --stop or --attach"))))))
+ :else (println "Must pass --start, --stop , upgrade, --attach or --ips")))))
+ (shutdown-agents)
+ (println "Done.")
+ (System/exit 0))
;; DEBUGGING
(comment
Please sign in to comment.
Something went wrong with that request. Please try again.