---
conf/aeolus-conductor | 5 +++--
conf/aeolus-conductor.sysconf | 3 +++
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/conf/aeolus-conductor b/conf/aeolus-conductor
index b525ec1..ad3b570 100755
--- a/conf/aeolus-conductor
+++ b/conf/aeolus-conductor
@@ -15,6 +15,7 @@
RAILS_ENV="${RAILS_ENV:-production}"
CONDUCTOR_DIR="${CONDUCTOR_DIR:-/usr/share/aeolus-conductor}"
CONDUCTOR_USER="${CONDUCTOR_USER:-aeolus}"
+CONDUCTOR_GROUP="${CONDUCTOR_GROUP:-aeolus}"
THIN_PROG="${THIN_PROG:-thin}"
THIN_PID="${THIN_PID:-/var/run/aeolus-conductor/thin.pid}"
THIN_LOG="${THIN_LOG:-/var/log/aeolus-conductor/thin.log}"
@@ -38,8 +39,8 @@ start() {
fi
$THIN_PROG start -c "$CONDUCTOR_DIR" -l "$THIN_LOG" -P
"$THIN_PID" \
- -a $ADDR -e $RAILS_ENV --user $CONDUCTOR_USER -d --prefix=$PREFIX \
- --rackup "$CONDUCTOR_DIR/config.ru"
+ -a $ADDR -e $RAILS_ENV --user $CONDUCTOR_USER -g $CONDUCTOR_GROUP \
+ -d --prefix=$PREFIX --rackup "$CONDUCTOR_DIR/config.ru"
RETVAL=$?
if [ $RETVAL -eq 0 ] ; then
# wait until we can contact the server
diff --git a/conf/aeolus-conductor.sysconf b/conf/aeolus-conductor.sysconf
index 63bc0ee..74d73e4 100644
--- a/conf/aeolus-conductor.sysconf
+++ b/conf/aeolus-conductor.sysconf
@@ -4,6 +4,9 @@
# user under which Rails application runs
#CONDUCTOR_USER=aeolus
+# group under which Rails application runs
+#CONDUCTOR_GROUP=aeolus
+
# location of the thin program
#THIN_PROG=thin
--
1.7.4.4