Re: svscanboot and environment variables
Jurjen Oskam <[email protected]>
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Sep 23, 2003 at 04:01:04PM +0200, Laurent Bercot wrote: > svscanboot is a shell script, I didn't even know this, I never looked. :-) > "env - PATH=$PATH" part before "svscan". This will keep the environment, > apart from the PATH that is set at the top of the script. That is a good option. > from /etc/inittab - modifying the script if necessary. You never know: > you might be bitten by some hidden inittab non-portability, or by the > fearful process group trap. I tested it, and it works. The necessary environment variables remain defined and readproctitle still works. About the process group problem: I believe I was (one of?) the first to experience that problem (before pgrphack was included in daemontools), and since then, I've: a) learned what process groups are, and b) religously tested each new service to see whether it's doing silly things with process groups. :-) > (Or you might forget init and run svscan as process 1, as Paul and I do, > but I suppose that's not an option.) Not really, that's like using the NVidia kernel module and then asking for help on linux-kernel... Thanks, -- Jurjen Oskam PGP Key available at http://www.stupendous.org/