Skip to content

Commit 75bbc80

Browse files
committed
(SUP-2682) Remove Requires= property from timers
Prior to this commit, this property created an unwanted dependency between the timer and service. The effect is that starting the timer will immediately start the service regardless of the schedule. Removing this property allows the implicit relationships to work properly.
1 parent 24dc134 commit 75bbc80

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

templates/tidy_timer.epp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<%- | String $service | -%>
22
[Unit]
33
Description=Timer to tidy Puppet metrics
4-
Requires=<%= $service %>-tidy.service
54

65
[Timer]
76
OnCalendar=*-*-* 00:00:00

templates/timer.epp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<%- | String $service, String $minute | -%>
22
[Unit]
33
Description=Timer to collect Puppet metrics
4-
Requires=<%= $service %>-metrics.service
54

65
[Timer]
76
OnCalendar=*-*-* *:<%= $minute %>

0 commit comments

Comments
 (0)