You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sysadmins@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2017/06/08 20:42:08 UTC
[Bug 7432] New: Update cron jobs on sa-vm1 to run at UTC and ignore
daylight savings change
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7432
Bug ID: 7432
Summary: Update cron jobs on sa-vm1 to run at UTC and ignore
daylight savings change
Product: Spamassassin
Version: unspecified
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: sysadmins
Assignee: sysadmins@spamassassin.apache.org
Reporter: davej@apache.org
Target Milestone: Undefined
The current jobs in sa-vm1:/etc/cron.d/automc are hard-coded based on the
current PST time zone just to get things rolling again after rebuild on new
server. Need to setup best/reliable method to get this to continue to run at
the same time in about 5 months (Nov 5th).
From some basic research, the default cron on Ubuntu doesn't allow the CRON_TZ
entry like CentOS/RHEL's cronie does. I am using cronie to run my day job
masschecks server and it seems to handle everything perfectly. I can put in
the desired TZ time and it figures it out:
[root@mail02.nsvltn cron.d]# cat runAutoMasscheck
MAILFROM=noreply@ena.com
MAILTO=djones@ena.com
CRON_TZ=UTC
5 9 * * * vmail /usr/local/bin/runAutoMasscheck.sh
Ubuntu's cron is not so smart so we need to setup a solid method to run our
jobs. It would be nice if we could install cronie on sa-vm1 but I don't think
that is going to be an option.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7432] Update cron jobs on sa-vm1 to run at UTC and ignore
daylight savings change
Posted by bu...@bugzilla.spamassassin.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7432
Dave Jones <da...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|sysadmins@spamassassin.apac |davej@apache.org
|he.org |
--- Comment #4 from Dave Jones <da...@apache.org> ---
I have set the local TZ on the VM:
root@sa-vm1:~# timedatectl set-timezone UTC
root@sa-vm1:~# timedatectl status
Local time: Wed 2017-06-14 21:50:52 UTC
Universal time: Wed 2017-06-14 21:50:52 UTC
RTC time: Wed 2017-06-14 21:50:52
Time zone: UTC (UTC, +0000)
Network time on: yes
NTP synchronized: yes
RTC in local TZ: no
I ran "puppet agent -t" to see if it would change the TZ back and it seems to
be trying to set it to "Etc/UTC". Anyway the TZ seems to be staying like we
want.
Then I adjusted the /etc/cron.d/automc entries to be the literal times we need
things to run so we should be good now.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7432] Update cron jobs on sa-vm1 to run at UTC and ignore
daylight savings change
Posted by bu...@bugzilla.spamassassin.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7432
Dave Jones <da...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |davej@apache.org
--- Comment #1 from Dave Jones <da...@apache.org> ---
It would be nice to run the server at UTC to solve this problem and not have to
keep calculating file timestamp offsets when we run 'ls -l'. We would need to
run this past the INFRA team. I think they have Puppet managing the timezone
file but I am not sure. We may want to try to change the system timezone to
UTC and see if Puppet puts it back to "America/Los_Angeles" then open a Jira
issue to ask the INFRA team about running the server at UTC.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7432] Update cron jobs on sa-vm1 to run at UTC and ignore
daylight savings change
Posted by bu...@bugzilla.spamassassin.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7432
Bryan <bv...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bvest@apache.org
--- Comment #3 from Bryan <bv...@apache.org> ---
I had been looking for options to let cron run as a different TZ without having
to make major changes. I will wait to see what INFRA says.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7432] Update cron jobs on sa-vm1 to run at UTC and ignore
daylight savings change
Posted by bu...@bugzilla.spamassassin.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7432
Kevin A. McGrail <km...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kmcgrail@apache.org
--- Comment #2 from Kevin A. McGrail <km...@apache.org> ---
Let me ask informally first.
--
You are receiving this mail because:
You are the assignee for the bug.