furrypop has asked for the wisdom of the Perl Monks concerning the following question:
I've written a Perl daemon as a wrapper for a Java middleware gateway. It basically eases the configuration and ensures that the Java process is completely disassociated from the calling process (ie it setsids).
We have several instances of the gateway, each with their own config and I'm now being asked to ensure that each gateway process is started under a different ID.
I know I can do this by setting up sudo on the (Solaris) machine and creating a specific start script for each gateway, owned by each ID and with setuid permissions, and have this run by the daemon script. However, it seems like a lot of additional configuration each time a new gateway is added.
So, is there a way to set the ID under which the child process is spawned from within the Perl script? Would this still require sudo?
Apologies if this is crosses over into a UNIX question rather than merely a Perl one.
Thanks for your help,
J.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Daemon processing under different IDs.
by Zaxo (Archbishop) on Jan 14, 2005 at 14:34 UTC | |
by furrypop (Novice) on Jan 14, 2005 at 15:07 UTC | |
|
Re: Daemon processing under different IDs.
by Fletch (Bishop) on Jan 14, 2005 at 14:48 UTC |