I use an upstart script like:

description "Some description"
author "Your name"

start on startup
stop on shutdown

setuid deploy
chdir /deploy
console log

env PORT=4000

exec java -jar uberjar-name.jar

In the above case, I deploy to the "/deploy" directory, and execute the jar
using a non-privileged user named "deploy".

- James


On 8 July 2014 16:07, Jarrod Swart <jcsw...@gmail.com> wrote:

> James,
>
> It appears Sean and yourself have identified the issue.  The tmux scripts
> that launch my dev environment don't pull in the necessary environment.
>
> I have seen your environ library and I was to thank you for all your
> contributions.  Sean too!
>
> While I have you James do you have a good example of an upstart script for
> uberjars handy?
>
> I think I saw you post one somewhere but I can't find it despite my search
> attempts.
>

-- 
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/d/optout.

Reply via email to