You are not logged in.

#1 2010-03-09 14:52:39

paulez
Member
Registered: 2007-07-28
Posts: 24

cron.daily scripts ran multiple times since cron package update

Since cron package update I get a weird behaviour with cron.daily scripts. Indeed these scripts are executed multiple times, which is somewhat annoying for big backup.
I added this little script in cron.daily to show this :

#!/bin/bash
# Test cron
date >> /var/log/date_cron

And I get this :

Mon Feb 22 11:27:53 CET 2010
Tue Feb 23 11:27:13 CET 2010
Tue Feb 23 11:37:16 CET 2010
Tue Feb 23 11:44:45 CET 2010
Wed Feb 24 12:05:08 CET 2010
Wed Feb 24 12:15:59 CET 2010
Wed Feb 24 12:22:59 CET 2010
Thu Feb 25 12:24:32 CET 2010
Thu Feb 25 12:31:49 CET 2010
Thu Feb 25 12:35:01 CET 2010
Thu Feb 25 12:45:30 CET 2010
Fri Feb 26 12:44:37 CET 2010
Fri Feb 26 12:52:56 CET 2010
Fri Feb 26 13:02:18 CET 2010
Sat Feb 27 13:04:10 CET 2010
Sat Feb 27 13:13:50 CET 2010
Sat Feb 27 13:22:06 CET 2010
Sat Feb 27 13:28:49 CET 2010
Sun Feb 28 13:29:49 CET 2010
Sun Feb 28 13:35:19 CET 2010
Sun Feb 28 13:44:18 CET 2010
Sun Feb 28 13:49:52 CET 2010
Mon Mar  1 13:38:06 CET 2010
Mon Mar  1 13:47:02 CET 2010
Mon Mar  1 13:55:55 CET 2010
Tue Mar  2 13:58:21 CET 2010
Tue Mar  2 14:01:56 CET 2010
Tue Mar  2 14:08:14 CET 2010
Wed Mar  3 14:06:35 CET 2010
Wed Mar  3 14:15:44 CET 2010
Wed Mar  3 14:24:24 CET 2010
Thu Mar  4 14:25:04 CET 2010
Thu Mar  4 14:33:16 CET 2010
Thu Mar  4 14:41:33 CET 2010
Fri Mar  5 14:43:35 CET 2010
Fri Mar  5 14:47:05 CET 2010
Fri Mar  5 14:53:14 CET 2010
Sat Mar  6 14:53:32 CET 2010
Sat Mar  6 14:58:50 CET 2010
Sat Mar  6 15:04:18 CET 2010
Sun Mar  7 14:58:30 CET 2010
Sun Mar  7 14:58:30 CET 2010
Sun Mar  7 15:09:07 CET 2010
Sun Mar  7 15:13:29 CET 2010
Mon Mar  8 15:12:19 CET 2010
Mon Mar  8 15:12:19 CET 2010
Mon Mar  8 15:20:50 CET 2010
Tue Mar  9 15:24:35 CET 2010
Tue Mar  9 15:24:35 CET 2010
Tue Mar  9 15:31:58 CET 2010

We can see that the script is executed three times a day instead of one.

Here is /var/spool/cron/root :

# root crontab
# DO NOT EDIT THIS FILE MANUALLY! USE crontab -e INSTEAD

# man 1 crontab for acceptable formats:
#    <minute> <hour> <day> <month> <dow> <tags and command>
#    <@freq> <tags and command>

# SYSTEM DAILY/WEEKLY/... FOLDERS
@hourly         ID=sys-hourly   /usr/sbin/run-cron /etc/cron.hourly
@daily          ID=sys-daily    /usr/sbin/run-cron /etc/cron.daily
@weekly         ID=sys-weekly   /usr/sbin/run-cron /etc/cron.weekly
@monthly        ID=sys-monthly  /usr/sbin/run-cron /etc/cron.monthly

How can I restore the wanted behaviour ?

Offline

#2 2010-03-18 15:24:29

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: cron.daily scripts ran multiple times since cron package update

I'm the dcron developer. There's a bug, Other things have been demanding my attention the past weeks, but I'll try to track this down soon.

Offline

#3 2010-03-21 18:30:17

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: cron.daily scripts ran multiple times since cron package update

Profjim wrote:

I'm the dcron developer. There's a bug, Other things have been demanding my attention the past weeks, but I'll try to track this down soon.

Thanks! Do you need any debug info?


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#4 2010-11-02 23:24:39

Svenstaro
Administrator
From: Germany
Registered: 2008-11-19
Posts: 393

Re: cron.daily scripts ran multiple times since cron package update

This bug still appears. Is dcron still being worked on?

Offline

#5 2010-11-02 23:56:30

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: cron.daily scripts ran multiple times since cron package update

Svenstaro wrote:

This bug still appears. Is dcron still being worked on?

$ crontab -l
#
# DO NOT EDIT THIS FILE MANUALLY!! USE crontab -e INSTEAD.
#

# <minute> <hour> <day> <month> <dow> <command>


0 0 1 1 * /usr/bin/update_dcron

uh-oh


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB