Move debug to store/collect health checker
[mirror/dsa-puppet.git] / modules / mirror_health / 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 <%= @check_service %>
8
9 [Service]
10 ExecStart=/usr/local/sbin/mirror-health
11 RuntimeDirectory=dsa-mirror-health-<%= @check_service %>
12 ProtectSystem=full
13 ProtectHome=read-only
14 PrivateTmp=true
15 User=nobody
16 Group=nogroup
17 Restart=always
18
19 Environment="MIRROR_CHECK_SERVICE=<%= @check_service %>"
20 Environment="MIRROR_CHECK_URL=<%= @url %>"
21 Environment="MIRROR_CHECK_HEALTH_URL=<%= @health_url %>"
22 Environment="MIRROR_CHECK_INTERVAL=<%= @check_interval %>"
23 Environment="MIRROR_CHECK_HOSTS_FILE=/etc/dsa/health-check/<%= @check_service %>.hosts"
24
25 [Install]
26 WantedBy=multi-user.target