Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Joe Chung <joe_chung@hotmail.com>
Subject: Re: Quest: how to set global environment variables?
Date: Thu, 13 Feb 2003 05:56:33 GMT	[thread overview]
Message-ID: <uel6c7mdd.fsf@hotmail.com> (raw)
In-Reply-To: 1045047297.37541@sky.aect.cuhk.edu.hk

"Albert" <kinace@hotmail.com> writes:

> Dear all,
> 
> Would like to set a global environment variable for a daemon process. Daemon
> process is placed in /usr/sbin, owned by root:system.
>     -- What should the right way to do so?
>     -- Which file should keep those "export" statement?
> 
> A simple script with export statement, named "S999TEST" are placed in
> /sbin/rc2.d and /sbin/rc3.d. But, after system is rebooted,  still not make
> any affect.
> 
> S999TEST:
> --------------------------------------------------
> TEST_ENV_003=AlbertoErica003
> export TEST_ENV_003
> --------------------------------------------------
> 
> Best Regards,
> A. John

How is the daemon process started?

In the script that starts the daemon is where you need to set the
environment variables.

Look at any /sbin/rc*.d/S* script and see how they set various
environment variables BEFORE invoking the daemon process.

-jc
-- 
(apply 'concat (reverse (list "com"
                              (char-to-string 46) "yahoo"
                              (char-to-string 64) "joechung")))


  reply	other threads:[~2003-02-13  5:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-12 10:51 Quest: how to set global environment variables? Albert
2003-02-13  5:56 ` Joe Chung [this message]
2003-02-13  9:40 ` TyBreaker
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox