> I need to start a ring server from an upstart script on Ubuntu. Normally I > would use an uberjar and execute java directly, but in this case I cannot do > AOT and would like to simply run "lein ring server-headless" from my upstart > script. Even when I use "lein trampoline" I get "respawning too fast" from > upstart. > > Any ideas on how to do this?
Here's one I use: description "foo bar bz" start on (local-filesystems and net-device-up IFACE!=lo) stop on stopping network-services respawn setuid someuser setgid somegroup chdir /path/to/app exec lein trampoline ring server-headless 3344 Note that lein won't normally run as root. So the setuid part is important (or you'll need to set LEIN_ROOT=1). jack. -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.