Skip to content

Commit

Permalink
Give deployment user write permission to PID_FILE
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Chekaluk committed Dec 27, 2013
1 parent 560be1f commit 48d1a58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/chef/cookbooks/sidekiq/templates/default/sidekiq.erb
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ if [ -d $APP_ROOT ]; then
RESULT=$?
logger -t "monit-sidekiq[$$]" "Started with pid $! and exit $RESULT"
echo $! > $PID_FILE
chown root:$USER $PID_FILE
chmod g+w $PID_FILE
sleep .1
fi
unlock_and_exit_cleanly
Expand Down

0 comments on commit 48d1a58

Please sign in to comment.