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

Type=notify alternative in sidekiq.service systemd example (#4430)

This commit is contained in:
Mikhail Doronin 2020-01-14 17:45:59 +01:00 committed by Mike Perham
parent 4f630adb21
commit 3510de7df3

View file

@ -25,6 +25,14 @@ After=syslog.target network.target
# times! systemd is a critical tool for all developers to know and understand.
#
[Service]
# You may want to use
# Type=notify
# to ensure service is not marked as started before it actually did.
# Include sd_notify gem to send a message on sidekiq startup like
# Sidekiq.configure_server do |config|
# config.on(:startup) { SdNotify.ready }
# end
# to let systemd know when the service is actually started.
Type=simple
WorkingDirectory=/opt/myapp/current
# If you use rbenv: