Updated service unit
This commit is contained in:
parent
7dbfd54a70
commit
340ac04aa8
2 changed files with 2 additions and 13 deletions
|
@ -10,14 +10,3 @@ fabio:
|
|||
|
||||
config:
|
||||
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: []
|
||||
|
|
|
@ -5,12 +5,12 @@ After=network.target
|
|||
|
||||
[Service]
|
||||
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
|
||||
User={{ user }}
|
||||
Group={{ group }}
|
||||
Restart=on-failure
|
||||
CapabilityBoundingSet=CAP_SYSLOG CAP_NET_BIND_SERVICE
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
SecureBits=keep-caps
|
||||
NoNewPrivileges=yes
|
||||
|
|
Loading…
Reference in a new issue