1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
Mention `systemctl kill` and ease up on the watchdog a bit.
This commit is contained in:
Mike Perham 2020-04-08 09:48:43 -07:00 committed by GitHub
parent 3f9c4bf90b
commit 387267814d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,7 +5,7 @@
# Customize and copy this into /usr/lib/systemd/system (CentOS) or /lib/systemd/system (Ubuntu).
# Then run:
# - systemctl enable sidekiq
# - systemctl {start,stop,restart,reload} sidekiq
# - systemctl {start,stop,restart} sidekiq
#
# This file corresponds to a single Sidekiq process. Add multiple copies
# to run multiple processes (sidekiq-1, sidekiq-2, etc).
@ -38,7 +38,7 @@ After=syslog.target network.target
#
Type=notify
# If your Sidekiq process locks up, systemd's watchdog will restart it within seconds.
WatchdogSec=5
WatchdogSec=10
WorkingDirectory=/opt/myapp/current
# If you use rbenv:
@ -49,6 +49,7 @@ ExecStart=/usr/local/bin/bundle exec sidekiq -e production
# use `systemctl reload sidekiq` to send the quiet signal to Sidekiq
# at the start of your deploy process.
# Or you can use `systemctl kill -s TSTP sidekiq`
ExecReload=/usr/bin/kill -TSTP $MAINPID
User=deploy