Rendered consul.service
[Install]
wantedby = multi-user.target
[Service]
execstart = /usr/local/bin/consul agent -config-dir=/etc/consul.d/server
group = consul
environemnt = GOMAXPROCS=2
environemntfile = -/etc/sysconfig/consul
user = consul
killsignal = SIGINT
execreload = /bin/kill -s HUP $MAINPID
timeoutstopsec = 5
restart = on-failure
[Unit]
after = network.target
requires = network-online.target
description = Consul service discovery server
```