Hi, I have vixie-cron-4.1-r10 installed. Every script linked to or placed in /etc/cron.daily is run twice. This is every day, not just DST, so not http://bugs.gentoo.org/show_bug.cgi?id=69777. And I don't have anacron installed, so not http://bugs.gentoo.org/show_bug.cgi?id=235174. ps ax | grep cron shows only one cron process running. scripts in cron.weekly, cron.monthly etc. don't seem to be affected. I have done my best to check various crontabs to seeI wondered if there's something broken there. I present them in case I've missed something (an etc-update along the way or something?) Root's crontab (crontab -e) */15 * * * * test -x /usr/sbin/run-crons && /usr/sbin/run-crons 0 * * * * rm -f /var/spool/cron/lastrun/cron.hourly 0 3 * * * rm -f /var/spool/cron/lastrun/cron.daily 15 4 * * 6 rm -f /var/spool/cron/lastrun/cron.weekly 30 5 1 * * rm -f /var/spool/cron/lastrun/cron.monthly and /etc/crontab is # for vixie cron # # $Header: /var/cvsroot/gentoo-x86/sys-process/vixie-cron/files/crontab-3.0.1-r4,v 1.1 2005/03/04 23:59:48 ciaranm Exp $ # # # Global variables SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ # check scripts in cron.hourly, cron.daily, cron.weekly and cron.monthly 0 * * * * root rm -f /var/spool/cron/lastrun/cron.hourly 1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily 15 4 * * 6 root rm -f /var/spool/cron/lastrun/cron.weekly 30 5 1 * * root rm -f /var/spool/cron/lastrun/cron.monthly */10 * * * * root test -x /usr/sbin/run-crons && /usr/sbin/run-crons Reproducible: Always Steps to Reproduce: 1.Have script in /etc/cron.daily 2.It runs twice (I have a number of scripts that email me on completion so I know) Actual Results: /etc/cron.daily scripts run twice Expected Results: /etc/cron.daily scripts run once emerge --info Portage 2.1.4.5 (default/linux/x86/2008.0/server, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686) ================================================================= System uname: 2.6.25-gentoo-r8 i686 AMD Duron(tm) Timestamp of tree: Fri, 07 Nov 2008 16:21:02 +0000 ccache version 2.4 [disabled] app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.6 dev-lang/python: 2.4.4-r13, 2.5.2-r7 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.61-r2 sys-devel/automake: 1.9.6-r2, 1.10.1-r1 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.23-r3 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon -ftracer -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=athlon -ftracer -pipe -fomit-frame-pointer" DISTDIR="/data/distfiles" EMERGE_DEFAULT_OPTS="--alphabetical" FEATURES="buildpkg distlocks fixpackages sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo" LANG="en_AU.utf8" LC_ALL="en_AU.utf8" LDFLAGS="-Wl,-O1" LINGUAS="en_AU en en_US" MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://mirror.internode.on.net/gentoo-portage" USE="3dnow 3dnowext apache2 berkdb bzip2 cli cracklib crypt cups curl dri exif ffmpeg foomaticdb fortran gd gdbm gif iconv idn imagemagick imap imlib isdnlog javascript jpeg mbox midi mmx mmxext mp3 mpeg mudflap ncurses nls nntp nptl nptlonly odbc ogg openmp pam pcre perl png postgres ppds pppd python readline reflection samba session spl ssl sysfs tcpd truetype unicode vhosts vorbis x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux"LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_AU en en_US" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo" Unset: CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
No, this is just a feature of sys-process/vixie-cron. /etc/crontab is the system's crontab and `crontab -u root -l` is root's crontab. If you have duplicate entries for running /etc/cron.daily in those two crontabs, then yes, you will see the scripts in /etc/cron.daily being run twice: /etc/crontab: 0 3 * * * rm -f /var/spool/cron/lastrun/cron.daily root's crontab: 1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily
(In reply to comment #1) > /etc/crontab: > 0 3 * * * rm -f /var/spool/cron/lastrun/cron.daily > root's crontab: > 1 3 * * * root rm -f /var/spool/cron/lastrun/cron.daily I got those mixed up, sorry. The former is root's crontab and the latter is /etc/crontab (as explained in crontab(5)[URL], which notes that only the system crontab has a user field. :)