Skip to content

Instantly share code, notes, and snippets.

@jbfarez
Created November 24, 2016 14:02
Show Gist options
  • Save jbfarez/9e1f462dcb851b4f4406d35761cca774 to your computer and use it in GitHub Desktop.
Save jbfarez/9e1f462dcb851b4f4406d35761cca774 to your computer and use it in GitHub Desktop.
3d2e6bded046ca2e3f906f04235b279b
[Unit]
Description=consul agent
Requires=network.target
After=network.target auditd.service
[Service]
EnvironmentFile=-/etc/default/consul
Restart=on-failure
ExecStart=/usr/local/bin/consul agent $CONSUL_FLAGS -config-dir=/etc/consul
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=SIGINT
[Install]
WantedBy=multi-user.target
Alias=consul-agent.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment