Cronie default crontab
Hello,
I stumbled across the default crontab configuration that is shipped when adding cronie. The default crontab was added here cronie: Added default crontab - poky - Poky Build Tool and Metadata ( https://git.yoctoproject.org/poky/commit/?id=4a7446ed99a0c21ee81c22a69dd3fbbb8e396291 ).
I wondered if there is a reason that the cron.{daily, hourly, ...} folders are created but the run-parts is commented out in the default crontab file?
Took me a bit to figure out why placing files inside the cron.x folders has no effect (scripts are not called). My expectation would be either not having the cron.x folders created at all or the default crontab file has the run-parts lines uncommented.
Thanks
Markus
Quoted 10 lines · markus.webert via lists.yoctoproject.org
Hello,
I stumbled across the default crontab configuration that is shipped when adding cronie. The default crontab was added here cronie: Added default crontab - poky - Poky Build Tool and Metadata
<https://git.yoctoproject.org/poky/commit/?id=4a7446ed99a0c21ee81c22a69dd3fbbb8e396291>.
I wondered if there is a reason that the cron.{daily, hourly, ...} folders are created but the run-parts is commented out in the default crontab file?
While I can't comment with certainty on the reason behind 11 years old commits, this behavior doesn't look very odd to me.
Looking at 2 of the distros I'm using:
On Debian the cronie package creates these folders unconditionally, and the main crontab file comes prefilled (with your expectations) in an uncommented form, provided by cron-daemon-common package.
On the other hand cronie on EndeavourOS creates these folders once again unconditionally, and the same package provides the main crontab - and it is empty, without even comments. This seems to be more like Yocto.
I guess there is no real standard for this that could be adhered to?
Quoted 16 lines
Took me a bit to figure out why placing files inside the cron.x folders has no effect (scripts are not called). My expectation would be either not having the cron.x folders created at all or the default crontab file has the run-parts lines uncommented.
Thanks
Markus-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#65000): https://lists.yoctoproject.org/g/yocto/message/65000
Mute This Topic: https://lists.yoctoproject.org/mt/111825500/6084445
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Thanks for digging into it. I am also not aware of any real standard, I just wondered about the current default behavior. Haven't worked with EndeavourOS yet but maybe it uses anacrontab (/etc/anacrontab) to trigger scripts in those cron.x folders?