Talk:Cron
From Gentoo Wiki
Note
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using
~~~~
:
A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC) : A reply [[User:Sally|Sally]] 07:28, 9 October 2024 (UTC) :: Your reply ~~~~
Navigate to first
anacron AND vixie-cron
Talk status
This discussion is done as of Oct 6, 2013.
Hi, I would add some notes about the usage of anacron AND vixie-cron. In that case I usually use the following:
# check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly
59 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly
#9 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
#19 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly
#29 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly
#*/10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons
@hourly root nice -n 19 run-parts --report /etc/cron.hourly
as you see the daily,weekly and monthly part of the lastrun deletion is commented since I let anacron to perform the job as set in /etc/anacrontab:
1 5 cron.daily run-parts /etc/cron.daily
7 10 cron.weekly run-parts /etc/cron.weekly
30 15 cron.monthly run-parts /etc/cron.monthly
Without these changes the daily,weekly and monthly parts will be executed twice. Regards Giampiero
--Zio-lupo (talk) 08:28, 5 October 2013 (UTC)
- I personally don't recommend to use multiple cron systems concurrently, but if it needs to be documented, it might be better to add a "Multiple crons concurrently" section (as another section where the cron systems themselves are documented)? --SwifT (talk) 13:07, 6 October 2013 (UTC)
THE MESS
Talk status
This discussion is done.
yeah if we can start getting sub pages of the cron daemons with install instructions and details going, and clean up some of this page... that would be great. 666threesixes666 (talk) 23:53, 29 November 2013 (UTC)
- We can transition this a meta article, which is probably the best choice. Then each set of software can be broken out if desired. --Maffblaster (talk) 19:37, 15 August 2016 (UTC)
"If you chose dcron or fcron, do not run crontab /etc/crontab." Why?
Talk status
This discussion is done as of 2022-02-19.
At least for dcron, it is even suggested by the ebuild:
- dcron:
- This is NOT the system crontab! dcron does not support a system crontab.
- to get /etc/cron.{hourly|daily|weekly|montly} working with dcron run
- crontab /etc/crontab
- as root.
- NOTE: This will REPLACE root's current crontab!!
— Preceding unsigned comment added by Olek 2014-01-07T11:38:42
- This discussion is eight years old, and seems probably no longer relevant. 'dcron' no longer seems to include such a postinst elog message. Closing discussion as per Help:Talk_pages#Closing_discussions, please reopen if necessary. -- Ris (talk) 18:52, 19 February 2022 (UTC)