我怀疑debian/sid的cron没有起作用,哪位帮忙看一下
我的/etc/crontab文件如下:
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
25 6 * * * root test -e /usr/sbin/anacron || run-parts --report /etc/cron.daily
47 6 * * 7 root test -e /usr/sbin/anacron || run-parts --report /etc/cron.weekly
52 6 1 * * root test -e /usr/sbin/anacron || run-parts --report /etc/cron.monthly
#
其中/etc/cron.daily/find文件如下:
#! /bin/sh
#
# cron script to update the `find.codes' database.
#
# Written by Ian A. Murdock <imurdock@debian.org> and
# Kevin Dalley <kevin@aimnet.com>
if [ -f /etc/updatedb.conf ]; then
. /etc/updatedb.conf
fi
cd / && updatedb --localuser=nobody 2>/dev/null
=============================================================
可是每当我过一段时间之后运行 locate 命令的时候,总是告诉我说
数据库已经有n天没有更新了,哪位帮忙解决一下。
谢了先。
Reply to: