formula-traefik/traefik/files/traefik.service

21 lines
521 B
SYSTEMD
Raw Permalink Normal View History

2018-05-17 22:52:46 -04:00
[Unit]
Description=traefik
Wants=network.target
After=network.target
[Service]
EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/traefik
2018-05-17 23:40:37 -04:00
ExecStart=/usr/local/bin/traefik --configfile="{{ config_file }}"
2018-05-17 22:52:46 -04:00
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