Run script at boot time

Shahar Dag dag at cs.technion.ac.il
Sun Nov 14 07:17:30 UTC 2010


Hello

 

On Ubuntu 8.04 I want to run a script that update some files.

I want to run the script when the computer boots.

The script takes the data from a mounted file system (it’s a network file system).

 

The script is started by an entry in /etc/crontab that looks like:

@reboot   root  my_script

The problem is that the file system is not mounted when my_script is called.

 

I also tried to put a call to my script in /etc/rc.local with the same results

 

How can I run the script when boot is completed (especially after all file system are mounted)?

 

Thanks

Shahar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20101114/7a43e054/attachment.html>


More information about the ubuntu-users mailing list