[Toybox] [PATCH] crontab: Make sure crond detects crontab modifications

Kana Steimle kanasteimle at gmail.com
Mon Jan 20 12:59:43 PST 2025


Currently crond uses the modification time of the crontabs directory
to detect changes to the crontab files to decide whether to reload
them. This works fine when crontab creates or removes crontab files,
but when an existing crontab file is modified or replaced, it doesn't
change the modification time of the directory, so crond doesn't know
it should reload the crontab files. This patch fixes this by making
crontab remove the old crontab file (if it exists) before recreating
it, so the directory's modification time always changes when a crontab
is modified.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toybox-crontab-fix_modify.patch
Type: text/x-patch
Size: 433 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20250120/3156eeb9/attachment.bin>


More information about the Toybox mailing list