From 48d1a58b8da1043f4df80a4e6884db5d94353d5a Mon Sep 17 00:00:00 2001 From: Rob Chekaluk Date: Fri, 27 Dec 2013 08:39:15 -0500 Subject: [PATCH] Give deployment user write permission to PID_FILE --- examples/chef/cookbooks/sidekiq/templates/default/sidekiq.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/chef/cookbooks/sidekiq/templates/default/sidekiq.erb b/examples/chef/cookbooks/sidekiq/templates/default/sidekiq.erb index 6980397030..cfd6ffb89c 100644 --- a/examples/chef/cookbooks/sidekiq/templates/default/sidekiq.erb +++ b/examples/chef/cookbooks/sidekiq/templates/default/sidekiq.erb @@ -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