updatedb runs daily already through cron
Code:
[root]:[/etc/cron.daily]# crontab -l | grep daily
# Run daily cron jobs at 4:40 every day:
40 4 * * * /usr/bin/run-parts /etc/cron.daily 1> /dev/null
[root]:[/etc/cron.daily]#
and the in /etc/cron.dialy is the script slocate
Code:
[root]:[/etc/cron.daily]# cat slocate
#!/bin/sh
/usr/bin/updatedb -c /etc/updatedb.conf
[root]:[/etc/cron.daily]#
so unless there is a reason to run it from rc.local (for example if the box gets shutdown every night) there shouldn't be much reason to run it on boot as well.