Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save tbeyer567/5d1049d12d9ecae7ff5b0844f85da6b9 to your computer and use it in GitHub Desktop.

Select an option

Save tbeyer567/5d1049d12d9ecae7ff5b0844f85da6b9 to your computer and use it in GitHub Desktop.
[Unit]
Description="HashiCorp Consul - A service mesh solution"
Documentation=https://www.consul.io/
Requires=network-online.target
After=network-online.target
ConditionFileNotEmpty=/etc/consul.d/consul.hcl
[Service]
Type=notify
EnvironmentFile=-/etc/consul.d/consul.env
User=consul
Group=consul
ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul.d/
ExecReload=/bin/kill --signal HUP \$MAINPID
KillMode=process
KillSignal=SIGTERM
Restart=on-failure
LimitNOFILE=65536
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment