Changing group ownership of the socket file upon start up

51 views
Skip to first unread message

Nick Gordon

unread,
Jan 2, 2014, 12:07:37 AM1/2/14
to god...@googlegroups.com
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?

Donovan Bray

unread,
Jan 3, 2014, 9:28:04 AM1/3/14
to god...@googlegroups.com
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:


init:



--
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 god-rb+un...@googlegroups.com.
To post to this group, send email to god...@googlegroups.com.
Visit this group at http://groups.google.com/group/god-rb.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages