17 lines
350 B
SYSTEMD
17 lines
350 B
SYSTEMD
[Unit]
|
|
Description=Consul Agent
|
|
Requires=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
User=consul
|
|
Group=consul
|
|
EnvironmentFile=-/etc/default/consul
|
|
Restart=on-failure
|
|
ExecStart=/usr/bin/consul agent $CONSUL_FLAGS -config-dir=/etc/consul.d
|
|
ExecReload=/usr/bin/kill -HUP $MAINPID
|
|
KillSignal=SIGINT
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|