6158951bf6c4f9adb732d8c868cb030faf3848b1
[mirror/dsa-puppet.git] / modules / roles / templates / mirror-health.service.erb
1 ##
2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
4 ##
5
6 [Unit]
7 Description=Mirror health checking <%= @healthcheck_service %>
8
9 [Service]
10 ExecStart=/usr/local/sbin/mirror-health
11 RuntimeDirectory=dsa-mirror-health-<%= @healthcheck_service %>
12 DynamicUser=true
13
14 Environment="MIRROR_CHECK_SERVICE=<%= @check_service %>"
15 Environment="MIRROR_CHECK_URL=<%= @url %>"
16 Environment="MIRROR_CHECK_HOSTS=<%= @check_hosts.join ' ' %>"
17 Environment="MIRROR_CHECK_INTERVAL=<%= @check_interval %>"
18
19 [Install]
20 WantedBy=multi-user.target