On Wed, Nov 29, 2006 at 09:42:30AM +0100, [EMAIL PROTECTED] wrote:
> 
> Where should environmental variables be set to be accepted at boot in order 
> to launch an application from anywhere from terminal window as root? I tried 
> moving .bashrc (where the env variable are written) from my home to either
> 
> /root
> or
> /boot/grub
> 
> Neither worked. Of course I checked that setting manually the env variables 
> from terminal window as root worked correctly. Also. .bashrc worked correctly 
> to launch the application as user. Why launching as root? It is another 
> story, surely of no interest to anyone else than me.
Hi

If you are talking about the daemons that start up via /etc/init.d/* scripts,
these are called by init which calls rc (in debian, might be different in other
distro's), I don't think there is a standard way (debian has /etc/default/rcS
which is sourced by rc)

I normally change the init script for the daemon and add the env variables
there

> 
> Thanks for answering
> francesco pietra

Attachment: signature.asc
Description: Digital signature

Reply via email to