Updated service unit

This commit is contained in:
Eric Renfro 2018-05-17 19:22:37 -04:00
parent 7dbfd54a70
commit 340ac04aa8
2 changed files with 2 additions and 13 deletions

View file

@ -10,14 +10,3 @@ fabio:
config: config:
consul_address: localhost:8500 consul_address: localhost:8500
server: false
bind_addr: 0.0.0.0
data_dir: /var/fabio
ui: true
enable_debug: false
log_level: info
retry_join: []
retry_interval: 30s
datacenter: "main"
register: []
scripts: []

View file

@ -5,12 +5,12 @@ After=network.target
[Service] [Service]
EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/fabio EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/fabio
ExecStart=/usr/local/bin/fabio -registry.consul.addr consul.service.dc1.consul:8500 ExecStart=/usr/local/bin/fabio -registry.consul.addr {{ consul_address }}
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
User={{ user }} User={{ user }}
Group={{ group }} Group={{ group }}
Restart=on-failure Restart=on-failure
CapabilityBoundingSet=CAP_SYSLOG CAP_NET_BIND_SERVICE CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE AmbientCapabilities=CAP_NET_BIND_SERVICE
SecureBits=keep-caps SecureBits=keep-caps
NoNewPrivileges=yes NoNewPrivileges=yes