You are not logged in.
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_cronAnd 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 2010We 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.monthlyHow can I restore the wanted behaviour ?
Offline
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
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
This bug still appears. Is dcron still being worked on?
Offline
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_dcronuh-oh
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline