Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
Mention `systemctl kill` and ease up on the watchdog a bit.
  • Loading branch information
mperham committed Apr 8, 2020
1 parent 3f9c4bf commit 3872678
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/systemd/sidekiq.service
Expand Up @@ -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).
Expand Down Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 3872678

Please sign in to comment.