2018-05-17 17:36:29 -04:00
|
|
|
[Unit]
|
|
|
|
Description=fabio
|
|
|
|
Wants=network.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/fabio
|
2018-05-17 19:16:38 -04:00
|
|
|
ExecStart=/usr/local/bin/fabio -registry.consul.addr consul.service.dc1.consul:8500
|
2018-05-17 17:36:29 -04:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
User={{ user }}
|
|
|
|
Group={{ group }}
|
2018-05-17 19:16:38 -04:00
|
|
|
Restart=on-failure
|
|
|
|
CapabilityBoundingSet=CAP_SYSLOG CAP_NET_BIND_SERVICE
|
|
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
|
|
SecureBits=keep-caps
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
KillSignal=TERM
|
2018-05-17 17:36:29 -04:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|