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:
parent
4f630adb21
commit
3510de7df3
1 changed files with 8 additions and 0 deletions
|
@ -25,6 +25,14 @@ After=syslog.target network.target
|
||||||
# times! systemd is a critical tool for all developers to know and understand.
|
# times! systemd is a critical tool for all developers to know and understand.
|
||||||
#
|
#
|
||||||
[Service]
|
[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
|
Type=simple
|
||||||
WorkingDirectory=/opt/myapp/current
|
WorkingDirectory=/opt/myapp/current
|
||||||
# If you use rbenv:
|
# If you use rbenv:
|
||||||
|
|
Loading…
Reference in a new issue