3 ms·
I read this a while ago and was looking forward to the mess that would happen with these default Alpine configurations (after setting non-UTC localtime) 0
by PhilipRoman 1y ago
I read this a while ago and was looking forward to the mess that would happen with these default Alpine configurations (after setting non-UTC localtime)
0 2 * * * run-parts /etc/periodic/daily
0 3 * * 6 run-parts /etc/periodic/weekly
It appears that busybox cron is smart enough to handle it and only ran the jobs once.
- latchkey 1y agoGoogle's AI and ChatGPT answer disagrees. https://www.google.com/search?q=busybox+cron+dst https://www.google.com/search?q=busybox+cron+dst "BusyBox’s crond is a lightweight implementation designed for embedded systems, so it doesn’t have all the timezone/DST logic of full vixie-cron or cronie. It just reads /etc/TZ or the system timezone at startup and then wakes up every minute to check if something should run."
- PhilipRoman 1y agohttps://github.com/mirror/busybox/blob/master/miscutils/crond.c#L1093 https://github.com/mirror/busybox/blob/master/miscutils/cron...
- moderateclimate 1y agoPlease don't do this. AI is not a source and is frequently wrong (as it is in this case).
- latchkey 1y agoYou're right. It was honestly just a low effort semi-sarcastic reply that I wasn't really expecting anyone to take seriously. I should have just gone and read the source code as PhilipRoman did below.