LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to export a bash shell variable before init.d process start (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-export-a-bash-shell-variable-before-init-d-process-start-646887/)

pnsidhu 06-04-2008 03:26 AM

how to export a bash shell variable before init.d process start
 
Hi All
How to export a bash shell variable before a init.d process starts
and if i export a bash variable in the /etc/init.d/"demon" work ??.

Agrouf 06-04-2008 08:21 AM

It depends on your distro, but usually, there is a /etc/init.d/rc script that launches the other scripts.
Anyway, is there any use in exporting a bash variable before launching the daemon script? Isn't the daemon script just the place where you should export the variables?


All times are GMT -5. The time now is 03:51 AM.