summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarenard <arenard@gmail.com>2012-03-23 11:18:18 +0100
committerarenard <arenard@gmail.com>2012-03-23 11:18:18 +0100
commit47af1b7fe87ec933ac7e0d9ef8d873fc99a2fad7 (patch)
treef6499aa084e23b387ee0c353faad273b7c6fd4d0
parent6af33483fc9050f4990a96495c95da3d94fdf364 (diff)
downloadgitlab-ce-47af1b7fe87ec933ac7e0d9ef8d873fc99a2fad7.tar.gz
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.
-rwxr-xr-xresque.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/resque.sh b/resque.sh
index d8b68d463f0..f26d44a5959 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