X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Ftemplates%2Fmirror-health.service.erb;h=60d9dcd72b3c9d46208051b0db75b56cfc4db2c2;hb=56c943e4c7ff84a893ddf47efb2af3ad8977cff9;hp=6158951bf6c4f9adb732d8c868cb030faf3848b1;hpb=c89d010cf1b6f749e24fe636c93bda57bbe164ac;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/templates/mirror-health.service.erb b/modules/roles/templates/mirror-health.service.erb index 6158951bf..60d9dcd72 100644 --- a/modules/roles/templates/mirror-health.service.erb +++ b/modules/roles/templates/mirror-health.service.erb @@ -4,15 +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 %> -DynamicUser=true +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 %>"