20 lines
548 B
Desktop File
20 lines
548 B
Desktop File
[Unit]
|
|
Description=fabio
|
|
Wants=network.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/fabio
|
|
ExecStart=/usr/local/bin/fabio -cfg {{ config_file }} -registry.consul.addr {{ consul_address }}
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
User={{ user }}
|
|
Group={{ group }}
|
|
Restart=on-failure
|
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
|
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
|
SecureBits=keep-caps
|
|
NoNewPrivileges=yes
|
|
KillSignal=TERM
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|