From 3a5c3825b84a17e827dc837fff575913d5b9a1cd Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Fri, 3 Oct 2014 14:04:13 -0700 Subject: [PATCH] Added command path to puppet-storyboard This provides the full path to storyboard-worker-daemon to our sysvinit script. Change-Id: Iae0606d3a0b6b8ca211fc50232c631238ca80e50 --- templates/storyboard-workers.sh.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/storyboard-workers.sh.erb b/templates/storyboard-workers.sh.erb index a713276..2041a23 100644 --- a/templates/storyboard-workers.sh.erb +++ b/templates/storyboard-workers.sh.erb @@ -11,6 +11,7 @@ NAME=storyboard-workers USER=<%= scope.lookupvar("storyboard::params::user") %> GROUP=<%= scope.lookupvar("storyboard::params::group") %> +CMD_DIR="/usr/local/bin" CMD="storyboard-worker-daemon" CMD_ARGS="--worker-count <%= @worker_count %>" @@ -21,7 +22,7 @@ PID=/var/run/${NAME}.pid start () { echo -n "Start $NAME" - $SSD --start --pidfile $PID --make-pidfile -u $USER -g $GROUP --background --exec $CMD -- $CMD_ARGS + $SSD --start --pidfile $PID --make-pidfile -u $USER -g $GROUP --background --exec "$CMD_DIR/$CMD" -- $CMD_ARGS RETVAL=$? echo return $RETVAL