X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Froles%2Ftemplates%2Fmirror-health.service.erb;h=60d9dcd72b3c9d46208051b0db75b56cfc4db2c2;hb=c607d14223ca5845c6ccf4c9e346a75e648c33ef;hp=badcd33dc99b0844ccf1295c8263477dbee4d5e0;hpb=5c905360373d259a25c0e14e669d2d2f0843c78e;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/mirror-health.service.erb b/modules/roles/templates/mirror-health.service.erb index badcd33dc..60d9dcd72 100644 --- a/modules/roles/templates/mirror-health.service.erb +++ b/modules/roles/templates/mirror-health.service.erb @@ -4,19 +4,21 @@ ## [Unit] -Description=Mirror health checking <%= @healthcheck_service %> +Description=Mirror health checking <%= @check_service %> [Service] ExecStart=/usr/local/sbin/mirror-health -RuntimeDirectory=dsa-mirror-health-<%= @healthcheck_service %> +RuntimeDirectory=dsa-mirror-health-<%= @check_service %> ProtectSystem=full ProtectHome=read-only PrivateTmp=true User=nobody Group=nogroup +Restart=always Environment="MIRROR_CHECK_SERVICE=<%= @check_service %>" Environment="MIRROR_CHECK_URL=<%= @url %>" +Environment="MIRROR_CHECK_HEALTH_URL=<%= @health_url %>" Environment="MIRROR_CHECK_HOSTS=<%= @check_hosts.join ' ' %>" Environment="MIRROR_CHECK_INTERVAL=<%= @check_interval %>"