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 21:43:17 -04:00
|
|
|
ExecStart=/usr/local/bin/fabio -cfg {{ config_file }}
|
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
|
2018-05-17 19:22:37 -04:00
|
|
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
2018-05-17 19:16:38 -04:00
|
|
|
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
|