Added command path to puppet-storyboard

This provides the full path to storyboard-worker-daemon to
our sysvinit script.

Change-Id: Iae0606d3a0b6b8ca211fc50232c631238ca80e50
This commit is contained in:
Michael Krotscheck 2014-10-03 14:04:13 -07:00
parent 372394f0e1
commit 3a5c3825b8
1 changed files with 2 additions and 1 deletions

View File

@ -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