X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Froles%2Ftemplates%2Fmirror-health.service.erb;h=bf774406d0f54bdc57cb78e9d01f6d96406c480e;hb=0aac917e02155dbb1b9f06d317f389feac08911d;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..bf774406d 100644 --- a/modules/roles/templates/mirror-health.service.erb +++ b/modules/roles/templates/mirror-health.service.erb @@ -4,16 +4,17 @@ ## [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 %>"