diff --git a/templates/usr/local/lib/systemd/system/rosetta_maintenance_begin.timer.j2 b/templates/usr/local/lib/systemd/system/rosetta_maintenance_begin.timer.j2 index 32991bc2f1fa90f1f122f9f5c7f501bbb227b8df..bcbf33ad7e5d3433789aedf511411b5a70d1b0e3 100644 --- a/templates/usr/local/lib/systemd/system/rosetta_maintenance_begin.timer.j2 +++ b/templates/usr/local/lib/systemd/system/rosetta_maintenance_begin.timer.j2 @@ -4,8 +4,14 @@ Description=timer for rosetta_maintenance.service [Timer] # run on the 1st Tuesday of each month # You can validate your calendar expressions using `systemd-analyze calendar EXPR`. -OnCalendar=Tue *-*-01..07 08:00:00 -Unit=rosetta_maintenance_begin +# Of course, the expression we use on our Debian systems won't work on the +# jurassic RHEL versions of systemd 219, because the ".." syntax for timespans +# in calendar events isn't supported yet. Instead, we have to use the older +# syntax that explicitely lists all days separated by commas. +# One more reason for RHEL to fuck ALL THE WAY OFF! +# OnCalendar=Tue *-*-01..07 08:00:00 # NOT THIS on RHEL 7! +OnCalendar=Tue *-*-01,02,03,04,05,06,07 08:00:00 +Unit=rosetta_maintenance_begin.service [Install] WantedBy=default.target diff --git a/templates/usr/local/lib/systemd/system/rosetta_maintenance_end.timer.j2 b/templates/usr/local/lib/systemd/system/rosetta_maintenance_end.timer.j2 index 7a5522d4a6283b3c0b5c98ec1671b0872edd90fe..da46ac3e6beec5d845daee5bd57f41a66843b1a9 100644 --- a/templates/usr/local/lib/systemd/system/rosetta_maintenance_end.timer.j2 +++ b/templates/usr/local/lib/systemd/system/rosetta_maintenance_end.timer.j2 @@ -4,7 +4,13 @@ Description=timer for rosetta_maintenance.service [Timer] # run on the 1st Tuesday of each month # You can validate your calendar expressions using `systemd-analyze calendar EXPR`. -OnCalendar=Tue *-*-01..07 11:00:00 +# Of course, the expression we use on our Debian systems won't work on the +# jurassic RHEL versions of systemd 219, because the ".." syntax for timespans +# in calendar events isn't supported yet. Instead, we have to use the older +# syntax that explicitely lists all days separated by commas. +# One more reason for RHEL to fuck ALL THE WAY OFF! +# OnCalendar=Tue *-*-01..07 08:00:00 # NOT THIS on RHEL 7! +OnCalendar=Tue *-*-01,02,03,04,05,06,07 11:00:00 Unit=exlibris.service [Install]