Hi Nick et al, Nicholas Solter wrote: > Nicholas Solter wrote: >> Thorsten Frueauf wrote: >> Sound reasonable. So now start creates the directory and starts the >> depot. Restart stops the depot and then starts it (but doesn't create >> the directory). The start action now always checks for another depot >> running on that port (but only for processes owned by that user, as >> there's no way to check for processes owned by other users, unless >> you're running with extra privileges). > > One clarification: you can check for the existence of the processes, but > you can't run pfiles on them.
Just to close on that point, while you are right that /usr/bin/ps truncates to 80 chars, you could use /usr/ucb/ps auxnd then search for the -p option in order to get the port number. Note that /usr/ucb/ps is delivered within package SUNWscp, which is not part of an default OpenSolaris installation though. Greets Thorsten -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~