slocate doesn't

Ed Wilts ewilts at ewilts.org
Sat Apr 15 00:07:30 UTC 2006


On Fri, Apr 14, 2006 at 02:58:58PM -0400, Michael Johnson wrote:
> On Apr 14, 2006, at 2:47 PM, inode0 wrote:
> >On 4/14/06, inode0 <inode0 at gmail.com> wrote:
> >>On 4/14/06, Michael Johnson <mjohnson at coderyte.com> wrote:
> >>>On Apr 14, 2006, at 12:06 PM, Ed Wilts wrote:
> >>>>IMHO, Red Hat got this wrong...  Have a look at the cron job that's
> >>>>supposed to generate the catalog and you'll see how they screwed it
> >>>>up.

> I think that's the bonehead thing Ed was talking about.  So if it  
> runs every day with the default configuration, it will do absolutely  
> nothing since the -e is on the root.

This is what I was talking about:

[root at pe400 ~]# cat /etc/cron.daily/slocate.cron
#!/bin/sh
. /etc/updatedb.conf
[ "$DAILY_UPDATE" != "yes" ] && exit 0
renice +19 -p $$ >/dev/null 2>&1
/usr/bin/updatedb

If DAILY_UPDATE isn't set to yes in /etc/updatedb.conf, the cron job
exists without doing anything.

-- 
Ed Wilts, RHCE
Mounds View, MN, USA
mailto:ewilts at ewilts.org
Member #1, Red Hat Community Ambassador Program




More information about the redhat-list mailing list