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?
|