Last active
November 17, 2018 17:12
-
-
Save fitz123/cb8355572f31d4144d90d5a3bd5fb3f0 to your computer and use it in GitHub Desktop.
consul.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Consul service discovery agent | |
Requires=network-online.target | |
After=network.target | |
[Service] | |
User=consul | |
Group=consul | |
PIDFile=/run/consul/consul.pid | |
Restart=on-failure | |
Environment=GOMAXPROCS=2 | |
EnvironmentFile=-/etc/sysconfig/consul | |
#ExecStartPre=/usr/local/bin/consul validate /etc/consul.d | |
ExecStart=/usr/local/bin/consul agent $CONSUL_FLAGS -pid-file=/run/consul/consul.pid -config-dir=/etc/consul.d | |
ExecReload=/bin/kill -s HUP $MAINPID | |
KillSignal=SIGINT | |
TimeoutStopSec=5 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment