From 3510de7df3c2eaacec9061184666aa853a0abb13 Mon Sep 17 00:00:00 2001 From: Mikhail Doronin Date: Tue, 14 Jan 2020 17:45:59 +0100 Subject: [PATCH] Type=notify alternative in sidekiq.service systemd example (#4430) --- examples/systemd/sidekiq.service | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/systemd/sidekiq.service b/examples/systemd/sidekiq.service index 21a75dbe..ae62ee74 100644 --- a/examples/systemd/sidekiq.service +++ b/examples/systemd/sidekiq.service @@ -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: