> Please send me the contents of:
> /etc/cron.d/cron-apt (when enabled that way)

root@lina:/home/jba# cat /etc/cron.d/cron-apt 
#
# Regular cron jobs for the cron-apt package
#
# Every night at 4 o'clock.
0 4     * * *   root    test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt
# Every hour.
# 0 *   * * *   root    test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt 
/etc/cron-apt/config2
# Every five minutes.
# */5 * * * *   root    test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt 
/etc/cron-apt/config2


> /etc/crontab
root@lina:/home/jba# cat /etc/crontab 
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.

SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

# m h dom mon dow user  command
17 *    * * *   root    cd / && run-parts --report /etc/cron.hourly
25 6    * * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --
report /etc/cron.daily )
47 6    * * 7   root    test -x /usr/sbin/anacron || ( cd / && run-parts --
report /etc/cron.weekly )
52 6    1 * *   root    test -x /usr/sbin/anacron || ( cd / && run-parts --
report /etc/cron.monthly )
#

# m h dom mon dow user  command
*/10   * *   *   *   root  sync_share >/dev/null 2>&1


> /etc/cron-apt (all files)

root@lina:/etc/cron-apt# cat config
# Configuration for cron-apt. For further information about the possible
# configuration settings see /usr/share/doc/cron-apt/README.gz.

root@lina:/etc/cron-apt# ll *.d*
action.d:
insgesamt 8
-rw-r--r-- 1 root root  18 Mai 24  2013 0-update
-rw-r--r-- 1 root root 141 Sep  5 14:02 3-download

config.d:
insgesamt 0

errormsg.d:
insgesamt 0

logmsg.d:
insgesamt 0

mailmsg.d:
insgesamt 0

syslogmsg.d:
insgesamt 0
root@lina:/etc/cron-apt# cat action.d/0-update 
update -o quiet=2
root@lina:/etc/cron-apt# cat action.d/3-download 
autoclean -y
# jba 2013-05-26 do upgrade
#dist-upgrade -d -y -o APT::Get::Show-Upgraded=true
dist-upgrade -y -o APT::Get::Show-Upgraded=true

> 
> And do a "ls -l /etc/cron.*" and send me the output of that.

root@lina:/etc/cron-apt# ls -l /etc/cron.*
/etc/cron.d:
insgesamt 12
-rw-r--r-- 1 root root 244 Dez 28  2014 anacron
-rw-r--r-- 1 root root 355 Dez 26 19:12 cron-apt
-rw-r--r-- 1 root root 102 Jan  9 22:34 testlog

/etc/cron.daily:
insgesamt 60
-rwxr-xr-x 1 root root   311 Dez 28  2014 0anacron
-rwxr-xr-x 1 root root 15000 Apr 13  2015 apt
-rwxr-xr-x 1 root root   314 Nov  8  2014 aptitude
-rwxr-xr-x 1 root root   355 Okt 17  2014 bsdmainutils
lrwxrwxrwx 1 root root    18 Dez 22 21:24 cron-apt -> /usr/sbin/cron-apt
-rwxr-xr-x 1 root root  1597 Apr 10  2015 dpkg
-rwxr-xr-x 1 root root  4125 Feb 17  2015 exim4-base
lrwxrwxrwx 1 root root    37 Dez 11 02:59 google-chrome -> 
/opt/google/chrome/cron/google-chrome
-rwxr-xr-x 1 root root   580 Dez 30  2011 htdig
-rwxr-xr-x 1 root root    89 Nov  8  2014 logrotate
-rwxr-xr-x 1 root root  1293 Dez 31  2014 man-db
-rwxr-xr-x 1 root root   435 Jun 13  2013 mlocate
-rwxr-xr-x 1 root root   249 Nov 19  2014 passwd

/etc/cron.hourly:
insgesamt 0

/etc/cron.monthly:
insgesamt 4
-rwxr-xr-x 1 root root 313 Dez 28  2014 0anacron

/etc/cron.weekly:
insgesamt 12
-rwxr-xr-x 1 root root 312 Dez 28  2014 0anacron
-rwxr-xr-x 1 root root 120 Sep  5 23:37 flashplugin
-rwxr-xr-x 1 root root 771 Dez 31  2014 man-db


> 
> Your log files is probably useful too. At least check that cron is running
> something else. You mention that it is not running one of the other scripts
> you have. But is it running any cron job at all?

I checked by putting a file in /etc/cron.d that outputs every minute. That 
worked. It seems to me, that files maybe only run by cron, if the system is 
running at that time. As anacron is installed, it should also if the system is 
turned on later. Or am I wrong?

Juergen

> 
> Cheers,
> 
> // Ola

Reply via email to