On Fri, Sep 24, 1999 at 11:33:23AM -0400, Rob Chandhok wrote:
At 8:13 AM -0700 9/24/99, Frank Merrow wrote:
2. Getting p4d to always run as the "perforce" user I have setup.
It seems to start as the user name.
Make it setuid after you do a chown to perforce.perforce.
3. I'd really rather have p4d startup as a full deamon at boot time
rather than be required to start it as a user. I have nosed around
in the /etc files and there are several likely looking places to
hack in the startup, but not any where it would be an obvious and
natural addition.
You can start it up in /etc/rc.d/rc.local, that's a pretty safe place.
We actually made a little init style script for starting and stopping
the p4d processes, but we call it from rc.local.
You might consider starting it from inetd. p4d has a command line switch
just for this purpose. You can then use the tcpwrapper stuff to add a bit
more control over who can connect to it.
-- Trey