---
recipes/aeolus/templates/deltacloud-core | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/recipes/aeolus/templates/deltacloud-core
b/recipes/aeolus/templates/deltacloud-core
index 0f52b65..5c59818 100644
--- a/recipes/aeolus/templates/deltacloud-core
+++ b/recipes/aeolus/templates/deltacloud-core
@@ -16,6 +16,7 @@ PORT="${PORT:-<%= port %>}"
LOCKFILE="${LOCKFILE:-/var/lock/subsys/deltacloud-<%= name %> }"
LOGFILE="${LOGFILE:-/var/log/deltacloud-<%= name %>/$DRIVER.log}"
PIDFILE="${THIN_PID:-/var/run/deltacloud-<%= name %>.pid}"
+DELTACLOUD_USER="${DELTACLOUD_USER:-nobody}"
export DELTACLOUD_MOCK_STORAGE=/usr/lib/ruby/gems/1.8/gems/deltacloud-<%= name
%>-0.3.0/lib/deltacloud/drivers/mock/data/
PROG=/usr/bin/deltacloudd
@@ -34,7 +35,7 @@ start() {
exit 0
fi
- $PROG -i $DRIVER -e $ENV -p $PORT <%= "--provider #{endpoint}" unless
endpoint == "" %> >> $LOGFILE 2>&1 &
+ sudo -u $DELTACLOUD_USER -- $PROG -i $DRIVER -e $ENV -p $PORT <%= "--provider
#{endpoint}" unless endpoint == "" %> >> $LOGFILE 2>&1
&
RETVAL=$?
echo $! > $PIDFILE
if [ $RETVAL -eq 0 ] ; then
--
1.7.5.4
Show replies by date
Arg, you can ignore the 2/2 on this patch, it should be able to be
applied / tested independently.
-Mo