how to run a bash script before startup
Hi guys,
I need to run a bash script at the startup before anything else is up. This file exports some important global variables for some other scripts that are supposed to come up after. I tried rc.local but it doesn't work...after the command line is up, I can't execute the scripts because the configurations are not properly exported... I don't want to use /etc/profile as it waits for bash to come up first before it can export the configs and I can't wait that long... Any ideas? Thanks |
Did you try /etc/inittab or rc.sysinit?
(rc.local normally run after all the other init scripts) |
...
|
Put the script into the last line:
/etc/rc.d/rc.local |
All times are GMT -5. The time now is 10:26 AM. |