Package: cron
Version: 3.0pl1-116
Severity: normal
It appears that the files in /etc/cron.d have naming requirements. When a file
ends in .cron (or maybe this also depends on other factors) no error appears in
the /var/log/cron.log (enabled through etc/rsyslog.conf), yet the file is
ignored.
root@vps7553:~# cat /etc/cron.d/test
*/2 * * * * root touch /tmp/foo
root@vps7553:~# cat /etc/cron.d/test.cron
*/2 * * * * root touch /tmp/spam
root@vps7553:~# grep tmp /var/log/cron.log
...
Mar 14 11:44:01 vps7553 /USR/SBIN/CRON[19559]: (root) CMD (touch /tmp/foo)
...
root@vps7553:~# ls -l /tmp/{foo,spam}
ls: cannot access /tmp/spam: No such file or directory
-rw-r--r-- 1 root root 0 Mar 14 11:46 /tmp/foo
Cron should at least log an error. Besides that, the naming restrictions for
/etc/cron.d/ files should either be documented or removed.
Kind regards,
Vincent
-- Package-specific info:
--- EDITOR:
not set
--- usr/bin/editor:
/bin/nano
--- /usr/bin/crontab:
-rwxr-sr-x 1 root crontab 35040 Dec 19 01:36 /usr/bin/crontab
--- /var/spool/cron
drwxr-xr-x 5 root root 4096 Feb 7 17:54 /var/spool/cron
--- /var/spool/cron/crontabs
drwx-wx--T 2 root crontab 4096 Dec 19 01:36 /var/spool/cron/crontabs
-- System Information:
Debian Release: 6.0
APT prefers squeeze-updates
APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32.27xls-domU (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages cron depends on:
ii adduser 3.112+nmu2 add and remove users and groups
ii debianutils 3.4 Miscellaneous utilities specific t
ii dpkg 1.15.8.10 Debian package management system
ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib
ii libpam-runtime 1.1.1-6.1 Runtime support for the PAM librar
ii libpam0g 1.1.1-6.1 Pluggable Authentication Modules l
ii libselinux1 2.0.96-1 SELinux runtime shared libraries
ii lsb-base 3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
Versions of packages cron recommends:
pn lockfile-progs <none> (no description available)
ii postfix [mail-transport-agent 2.7.1-1 High-performance mail transport ag
Versions of packages cron suggests:
pn anacron <none> (no description available)
pn checksecurity <none> (no description available)
ii logrotate 3.7.8-6 Log rotation utility
Versions of packages cron is related to:
pn libnss-ldap <none> (no description available)
pn libnss-ldapd <none> (no description available)
pn libpam-ldap <none> (no description available)
pn libpam-mount <none> (no description available)
pn nis <none> (no description available)
pn nscd <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]