From 47af1b7fe87ec933ac7e0d9ef8d873fc99a2fad7 Mon Sep 17 00:00:00 2001 From: arenard Date: Fri, 23 Mar 2012 11:18:18 +0100 Subject: [PATCH] Use of -p option of mkdir command to avoid message telling tmp/pids directory already exists at every GitLab (re)start. It ensures that all directories on the path exists so it can create tmp directory if its not there for some reason. --- resque.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resque.sh b/resque.sh index d8b68d46..f26d44a5 100755 --- a/resque.sh +++ b/resque.sh @@ -1,2 +1,2 @@ -mkdir tmp/pids +mkdir -p tmp/pids nohup bundle exec rake environment resque:work QUEUE=* RAILS_ENV=production PIDFILE=tmp/pids/resque_worker.pid & >> log/resque_worker.log 2>&1