How can I run updatedb @reboot as a background process?
How can I make uptadedb run as a background startup process?
If I add it to rc.local, it'll take a bit of time to finish running, and the boot-up process will be considerably longer. I'd like to have something/someone else run it for me at startup, like cron, but slackware's crontab doesn't support @reboot like Vixie does (as said by THE MAN). Also, waiting for the daily cron job isn't an option because the machine gets turned off regularly (laptop, not server). Thanks in advance |
Try:
updatedb & in rc.local -- that will background the process. You may need to put in the full path to updatedb. |
I think you should still run it through cron.
But I think it's possible to background the process with Code:
updatedb & |
updatedb runs daily already through cron
Code:
[root]:[/etc/cron.daily]# crontab -l | grep daily Code:
[root]:[/etc/cron.daily]# cat slocate 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. |
Quote:
|
All times are GMT -5. The time now is 03:49 AM. |