pcp
[Top] [All Lists]

Re: Unix Domain Sockets

To: "Frank Ch. Eigler" <fche@xxxxxxxxxx>, Dave Brolley <brolley@xxxxxxxxxx>
Subject: Re: Unix Domain Sockets
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 4 Jun 2013 18:15:08 -0400 (EDT)
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <20130604203516.GB15065@xxxxxxxxxx>
References: <51AD5434.9090200@xxxxxxxxxx> <1004356284.18217432.1370333038213.JavaMail.root@xxxxxxxxxx> <51AE0706.9010507@xxxxxxxxxx> <y0mvc5telx2.fsf@xxxxxxxx> <51AE4DD8.1070406@xxxxxxxxxx> <20130604203516.GB15065@xxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Thread-index: FF/ROy1BK9LF1BYP0tZX25CKKSqohw==
Thread-topic: Unix Domain Sockets
Hey guys,

----- Original Message -----
> Hi -
> 
> On Tue, Jun 04, 2013 at 04:28:08PM -0400, Dave Brolley wrote:
> > We would then need a separate socket in the file system for each. i.e.
> > /var/run/pcp/pmcd.<pid>.socket.
> 

(just to clarify, thats $PCP_RUN_DIR/pmcd.socket - pmcd should make
use of pmGetConfig(3) when evaulating that path).

> Or some other user-specified name.

*nod*.

> > Is it even possible to run multiple separate pmcds? There is only
> > one /var/run/pcp/pmcd.pid afaikt.
> 
> /var/run defaults are for distro-managed pmcd.  A user that wishes to
> run his own pmcd for some reason would have to override all the
> defaults, including that pmcd.pid file, to avoid conflicts.

*nod*.  Or set PCP_DIR to point elsewhere, for a global prefix.

Given the other mail, it sounds like a single unix socket is the
way to go and the in-progress user/group permissions stuff will
likely suffice for our needs here.

cheers.

--
Nathan

<Prev in Thread] Current Thread [Next in Thread>