2c7ab566e1
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
17 lines
341 B
Text
17 lines
341 B
Text
[Unit]
|
|
Description=Consul Agent
|
|
Wants=basic.target
|
|
After=basic.target network.target
|
|
|
|
[Service]
|
|
User=consul
|
|
Group=consul
|
|
Environment="GOMAXPROCS=2"
|
|
ExecStart=/usr/local/bin/consul agent -config-dir /etc/consul/conf.d
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
KillMode=process
|
|
Restart=on-failure
|
|
RestartSec=42s
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|