mojombo/god — pull request #116 by lansing (2012-10-21 21:11:51+00:00)
Title: Enable multiple gods on one system, run by non-root users.

The primary change in this pull request causes god to create and use a socket file in a user-specific directory when /var/run/god is not writable. Without this change, spinning up a second god on a box that already has one running will either clobber the first god's socket file, or fail to create a socket file and die at startup.

With this change, each user on a system can run its own independent god. I've been using this patch since February in order to run staging deployments for multiple apps on one server, while reusing the same god configs that are used in these apps' production deployments.

This pull request also includes tests for the changes.