Skip to content

Commit

Permalink
Updating documentation of example systemd service to be of type notif…
Browse files Browse the repository at this point in the history
…y. (#5689)

#2121

https://www.freedesktop.org/software/systemd/man/systemd.service.html

When set to notify, systemd will not attempt to start any dependent
services until after consul sends the notify signal.  This is useful
in cases where there services that rely on the local consul agent
to be up and functional before they can start.  The default is simple,
which will immediately mark the service as up and functioning even
if consul has not yet joined the cluster and has started listening
for connnections.
  • Loading branch information
nathanejohnson authored and banks committed May 13, 2019
1 parent 2c4dd43 commit 521fd89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions website/source/docs/guides/deployment-guide.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ After=network-online.target
ConditionFileNotEmpty=/etc/consul.d/consul.hcl
[Service]
Type=notify
User=consul
Group=consul
ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul.d/
Expand Down

0 comments on commit 521fd89

Please sign in to comment.