diff --git a/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/core.clj b/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/core.clj index fceec23..704db86 100644 --- a/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/core.clj +++ b/libs/deps-template/resources/io/github/kit_clj/kit/src/clj/core.clj @@ -39,8 +39,7 @@ (defn stop-app [] ((or (:stop defaults) (fn []))) - (some-> (deref system) (ig/halt!)) - (shutdown-agents)) + (some-> (deref system) (ig/halt!))) (defn start-app [& [params]] ((or (:start params) (:start defaults) (fn []))) @@ -48,7 +47,8 @@ (ig/expand) (ig/init) (reset! system)) - (.addShutdownHook (Runtime/getRuntime) (Thread. stop-app))) + (.addShutdownHook (Runtime/getRuntime) (Thread. stop-app)) + (.addShutdownHook (Runtime/getRuntime) (shutdown-agents))) (defn -main [& _] (start-app)) diff --git a/libs/deps-template/resources/io/github/kit_clj/kit/versions.edn b/libs/deps-template/resources/io/github/kit_clj/kit/versions.edn index 0a1aab1..c88d02d 100644 --- a/libs/deps-template/resources/io/github/kit_clj/kit/versions.edn +++ b/libs/deps-template/resources/io/github/kit_clj/kit/versions.edn @@ -16,5 +16,5 @@ "kit-sql-hikari" "1.0.6" "kit-sql" "1.1.4" "kit-undertow" "1.0.7" - "lein-template" "0.1.66" - "deps-template" "0.1.66"} + "lein-template" "0.1.67" + "deps-template" "0.1.67"}