Skip to content

Commit

Permalink
Add System/exit to main template
Browse files Browse the repository at this point in the history
Ensures that daemon threads don't keep the process alive after the -main
function has completed.
  • Loading branch information
weavejester committed Apr 23, 2020
1 parent 16b739e commit 778942a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lein-template/resources/leiningen/new/duct/base/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
profiles [:duct.profile/prod]]
(-> (duct/resource "{{dirs}}/config.edn")
(duct/read-config)
(duct/exec-config profiles keys))))
(duct/exec-config profiles keys))
(System/exit 0)))

0 comments on commit 778942a

Please sign in to comment.