diff options
author | arenard <arenard@gmail.com> | 2012-03-23 11:18:18 +0100 |
---|---|---|
committer | arenard <arenard@gmail.com> | 2012-03-23 11:18:18 +0100 |
commit | 47af1b7fe87ec933ac7e0d9ef8d873fc99a2fad7 (patch) | |
tree | f6499aa084e23b387ee0c353faad273b7c6fd4d0 | |
parent | 6af33483fc9050f4990a96495c95da3d94fdf364 (diff) | |
download | gitlab-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-x | resque.sh | 2 |
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 |