LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   running scripts at boot (https://www.linuxquestions.org/questions/linux-general-1/running-scripts-at-boot-474083/)

dglock 08-15-2006 11:30 AM

running scripts at boot
 
I am using pclinux .92 jr.

I have a script i want to run at boot,I have seen other posts that say to put the script in rc.local but that does not exist in pclinux.

How can i get this script to run at boot?

thanks

don

b0uncer 08-15-2006 11:32 AM

Put it in any script, or create a new script, in your /etc/rc.something directory. The /etc/rc.... directory/directories include scripts that are run at boot. Some distributions have /etc/rc.local and some don't - but the rc-directory usually holds at least some scripts that are run at boot time, and in most cases you can simply write your own and put it there.

dglock 08-15-2006 11:48 AM

Thanks for the reply!

I have tried putting the script in the rc.local directory but it doesn't run.

There must be a config file some where that tells the os what scripts to run.

don

marozsas 08-15-2006 01:15 PM

If you can't figure out how to run scripts by the way discuted above, you can, at least, ask to root's crontab to run it at boot time:

Code:

root@localhost # crontab -l
@reboot /path/to/your/script
root@localhost #

This special time specification "@reboot" replace the 5 initial time and date fields.

Personally, I think this is a work-around. Others may have the opinion it is just another feature. Would be nice if you figure out how to do this using the default startup schema for your distro.


All times are GMT -5. The time now is 11:24 PM.