I do this in the init or upstart script.

I used to use init because it was easy, but I found situations where god
would segfault and leave my systems open to failure. So now I use an
upstart script with respawn to ensure in the unlikely event that god
crashes it is automatically restarted.

These scripts are written for my capistrano deployment so you will have to
do some interpolating of the values that capistrano normally provides, but
it will give you a roadmap to make it happen.

Hopefully obvious that if you use the upstart script your system needs to
have the upstart subsystem.  check to see if you already have .conf files
in "/etc/init"

upstart:

https://github.com/donnoman/cap-recipes/blob/master/lib/cap_recipes/tasks/god/god.upstart.erb

init:

https://github.com/donnoman/cap-recipes/blob/master/lib/cap_recipes/tasks/god/god.init


On Wed, Jan 1, 2014 at 9:07 PM, Nick Gordon <[email protected]> wrote:

> Can't seem to find if this is possible anywhere in the docs, but is there
> a way to specify the ownership of the socket file that is created when god
> is started?
>
> Specifically, I run God as root, but I'd like the socket file to have a
> different group ownership so that I can allow other users to run commands
> with God (www, specifically).
>
> Is this possible?
>
> --
> You received this message because you are subscribed to the Google Groups
> "god.rb" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/god-rb.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
You received this message because you are subscribed to the Google Groups 
"god.rb" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/god-rb.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to