From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,44c7a666aee27018,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2003-02-12 03:01:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.cuhk.edu.hk!news.erg.cuhk.edu.hk!not-for-mail From: "Albert" Newsgroups: comp.unix.tru64 Subject: Quest: how to set global environment variables? Date: Wed, 12 Feb 2003 18:51:34 +0800 Organization: Center for the Advancement of E-Commerce Technologies - The Chinese University of Hong Kong Message-ID: <1045047297.37541@sky.aect.cuhk.edu.hk> NNTP-Posting-Host: sky.aect.cuhk.edu.hk X-Trace: eng-ser1.erg.cuhk.edu.hk 1045047297 14109 137.189.95.225 (12 Feb 2003 10:54:57 GMT) X-Complaints-To: abuse@erg.cuhk.edu.hk NNTP-Posting-Date: 12 Feb 2003 10:54:57 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Cache-Post-Path: sky.aect.cuhk.edu.hk!unknown@pn-206-120.itsc.cuhk.edu.hk X-Cache: nntpcache 2.4.0b5 (see http://www.nntpcache.org/) Xref: archiver1.google.com comp.unix.tru64:9530 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