=========================================================================== Patrick DUPRÉ | | email: pdupre@xxxxxxx Laboratoire de Physico-Chimie de l'Atmosphère | | Université du Littoral-Côte d'Opale | | Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 189A, avenue Maurice Schumann | | 59140 Dunkerque, France =========================================================================== > > On 09/19/2016 05:42 AM, Patrick Dupre wrote: > > Hello, > > > > 1) In fc22, anacron (and crond) sent mail to root every time that it > > was running. How can I recover this function with fc24 ? > > > > 2) Now, anacron and cron work. However, I have > > in /etc/crontab > > 22 23 * * * root run-parts /etc/cron.daily > > 06 13 * * 6 root run-parts /etc/cron.weekly > > and in /ect/anacrontab > > 1 5 cron.daily nice run-parts /etc/cron.daily > > 7 25 cron.weekly nice run-parts /etc/cron.weekly > > @monthly 45 cron.monthly nice run-parts /etc/cron.monthly > > > > > > But crond.weekly runs on the Monday while it must have run on Saturday ! > > > > Sep 19 10:01:01 teucidide anacron[4820]: Will run job `cron.weekly' in 54 min. > > Sep 19 10:01:01 teucidide anacron[4820]: Jobs will be executed sequentially > > Sep 19 10:35:01 teucidide anacron[4820]: Job `cron.daily' started > > Sep 19 10:35:02 teucidide run-parts[6320]: (/etc/cron.daily) finished certwatch > > Sep 19 10:35:03 teucidide run-parts[6327]: (/etc/cron.daily) finished logrotate > > Sep 19 10:35:03 teucidide anacron[4820]: Job `cron.daily' terminated > > Sep 19 10:55:01 teucidide anacron[4820]: Job `cron.weekly' started > > > > > > 3) systemctl | grep -i locate > > provides not answer. > > How can I check that mlocate run properly ? > > There is not service locate or mlocate > > > > Thank for your help. > > > > =========================================================================== > > Patrick DUPRÉ | | email: pdupre@xxxxxxx > > Laboratoire de Physico-Chimie de l'Atmosphère | | > > Université du Littoral-Côte d'Opale | | > > Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44 > > 189A, avenue Maurice Schumann | | 59140 Dunkerque, France > > =========================================================================== > > > > > > > >> On 09/17/2016 07:51 AM, Patrick Dupre wrote: > >>> Hello, > >>> > >>> In my mailbox, I receive emails: Anacron job 'cron.weekly' on > >>> While I do not receive any amail: > >>> Anacron job 'cron.daily' on > >>> > >>> while it should run daily: > >>> logrotate > >>> certwatch > >>> > >>> It even more strange, on a fc22 machine I had Anacron job 'cron.daily' on > >>> until July 14. and then not anymore ! > >>> > >>> Is anacrontab controlled by /etc/crontab or by /etc/anacrontab ? > >>> > >>> In addition, in fc22 > >>> I had: > >>> /etc/cron.daily/mlocate > >>> > >>> while in fc24, > >>> I do not have such a file. > >>> How mlocate is now managed ? > >>> > >>> Thank. > >> Anacron is what's used and that uses /etc/anacrontab. The last few > >> lines of the file: > >> #period in days delay in minutes job-identifier command > >> 1 5 cron.daily nice run-parts > >> /etc/cron.daily > >> 7 25 cron.weekly nice run-parts > >> /etc/cron.weekly > >> @monthly 45 cron.monthly nice run-parts /etc/cron.monthly > >> > >> I can't say if /etc/crontab is still used. It has no lines like what's > >> above to do anything. > >> > >> As for mlocate it's now a (or part of a) service: > >> [mcallman@draco ~]$ systemctl | grep -i locate > >> mlocate-updatedb.timer > >> loaded active waiting Updates mlocate database every day > >> > >> > >> Mark C. Allman, PMP, CSM > >> Founder, See How You Ski, www.seehowyouski.com > >> Sr. Project Manager, Allman Professional Consulting, Inc., www.allmanpc.com > >> 617-947-4263, Twitter: @allmanpc > >> _______________________________________________ > >> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > >> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxx > I'm running F24 so it's not straightforward to say what to do for F22. > Do you have the mlocate package installed? On F24: > [mcallman@draco etc]$ rpm -q mlocate > mlocate-0.26-14.fc24.x86_64 Yes this version of mlocate is installed > I don't think anacron or cron by themselves send mail unless a job > they're running sends output to STDOUT or STDERR. Anacron/cron won't > send me a daily logwatch report -- that's configured in logwatch. > Anacron just runs the job. You might also need to have something such as > sendmail installed that will do the mail delivery work. There was > something in recent release notes about not needing sendmail any longer > but I don't remember the details. Yes I have sendmail is installed: This is what I got in the roor mailbox with fc22 N 3 Jun 25 Anacron (2K) Anacron job 'cron.weekly' on teucidi N 4 Jun 25 (Cron Daemon) (1K) Cron <root@teucidide> run-parts /etc N 5 Jun 26 Anacron (735) Anacron job 'cron.daily' on teucidid N 6 Jun 26 (Cron Daemon) (1K) Cron <root@teucidide> run-parts /etc N 7 Jun 27 Anacron (735) Anacron job 'cron.daily' on teucidid > /etc/crontab should be empty. In fc24, it seems that /etc/crontab is ignored How can I control cron.daily and cron.weekly , The crond.service I believe runs what > users set up in their respective crontab files, what's in /etc/crontab > and also what's in /etc/cron.d. The file "0hourly" in /etc/cron.d has > an entry to run each hour what's in /etc/cron.hourly. That has the file > "0anacron" which has some checks in it and then runs anacron, which then > runs everything listed in anacrontab. Look at "0anacron" and you'll see > checks for /etc/cron.daily. These checks might prevent daily jobs being > run twice if /etc/cron.daily is listed in both anacrontab and crontab > but it looks like it's an error to list /etc/cron.daily in both. Same > for /etc/cron.weekly and the others. > > Mark C. Allman, PMP, CSM > Founder, See How You Ski, www.seehowyouski.com > Sr. Project Manager, Allman Professional Consulting, Inc., www.allmanpc.com > 617-947-4263, Twitter: @allmanpc > > > > > _______________________________________________ > users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx > _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx