1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

changed location of pid file in upstart example to be in the app

directory, named sidekiq-n
This commit is contained in:
David Moulton 2014-12-05 14:23:17 -07:00
parent 5047f9220b
commit cb3bb721ef

View file

@ -53,7 +53,7 @@ exec /bin/bash <<'EOT'
# Logs out to /var/log/upstart/sidekiq.log by default
cd $app
exec bundle exec sidekiq -i ${index} -e production -P tmp/pids/${app}-${index}.pid
exec bundle exec sidekiq -i ${index} -e production -P ${app}/tmp/pids/sidekiq-${index}.pid
EOT
end script
@ -77,6 +77,6 @@ exec /bin/bash <<'EOT'
# Logs out to /var/log/upstart/sidekiq.log by default
cd $app
exec bundle exec sidekiqctl stop tmp/pids/${app}-${index}.pid 2> /dev/null
exec bundle exec sidekiqctl stop ${app}/tmp/pids/sidekiq-${index}.pid 2> /dev/null
EOT
end script