formula-fabio/fabio/files/fabio.service

21 lines
505 B
SYSTEMD
Raw Normal View History

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
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