Skip to content
Snippets Groups Projects
Commit 718a8885 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: use time syntax that jurassic systemd on RHEL 7 actually supports

parent bf26c31e
Branches
No related tags found
No related merge requests found
Pipeline #6272 passed
......@@ -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
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment