formula-consul/consul/files/consul.service

16 lines
373 B
SYSTEMD
Raw Normal View History

[Unit]
Description=consul
Wants=network.target
After=network.target
[Service]
EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/consul
ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul.d
ExecReload=/bin/kill -HUP $MAINPID
KillSignal=TERM
User={{ user }}
Group={{ group }}
[Install]
WantedBy=multi-user.target