Re: setting enviroment variable before deamon starts
- From: tomb <tomb.fish@xxxxxxxxx>
- Date: Fri, 18 Jan 2008 12:04:04 -0800 (PST)
On 18 Jan., 16:52, Juha Laiho <Juha.La...@xxxxxx> wrote:
If the env.vars are something that just the daemon should see,
then there are two possibilities. One was already discussed;
make a script that starts the daemon, and that you call during
the system startup (in the rc.local script).
The other possibility is to use "env" command as a helper to start
the daemon; instead of the
/home/progs/ts &
you have above (supposing that's one of the daemons you're starting),
use
env VAR1=val1 VAR2=val2 /home/progs/ts &
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
Thank you very much Juha, It works!
There is one more possibility, I heard about sourcing a file.
But no idea how to do it. Can someone explain in the way as Juha did.
I am newbie to linux.
Got already answer but asking for curiosity.
Tom
.
- Follow-Ups:
- Re: setting enviroment variable before deamon starts
- From: Josef Moellers
- Re: setting enviroment variable before deamon starts
- References:
- setting enviroment variable before deamon starts
- From: tomb
- Re: setting enviroment variable before deamon starts
- From: Juha Laiho
- setting enviroment variable before deamon starts
- Prev by Date: Re: Timeout timers in an application
- Next by Date: Processing files larger than 2.2GB.
- Previous by thread: Re: setting enviroment variable before deamon starts
- Next by thread: Re: setting enviroment variable before deamon starts
- Index(es):
Relevant Pages
|