pcp
[Top] [All Lists]

Re: [pcp] non-root changes break pmcd on Mac OS X

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] non-root changes break pmcd on Mac OS X
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Tue, 8 Jan 2013 04:04:22 -0500 (EST)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1357635274.4452.3.camel@xxxxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>
Hi Ken,

----- Original Message -----
> One for you Nathan?

*nod*

> Our Mac OS X packaging for PCP does not appear to carry any support
> to
> create the "pcp" user that is needed for the non-root execution of
> pmcd ... without this pmcd dies at startup.
> 

Hmmm.  For me, all is goodness on our Mac ...

sweet:~ nathans$ uname -a
Darwin sweet 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7 16:32:41 PDT 2011; 
root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64
sweet:~ nathans$ ps aux | grep pmcd
pcp        146   0.0  0.0  2439756   1260   ??  Ss    1Jan13   0:00.01 
/usr/libexec/pcp/bin/pmcd
nathans   4101   0.0  0.0  2426928    336 s000  R+    7:57PM   0:00.00 grep pmcd
sweet:~ nathans$ pcp
Performance Co-Pilot configuration on sweet:

 platform: Darwin sweet 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:32:41 
PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64
 hardware: 4 cpus, 1 disk, 4092MB RAM
 timezone: EST-11
     pmcd: Version 3.6.11-1, 6 agents
     pmda: pmcd sample sampledso mmv darwin simple


> The attached script seems to work, but I don't know where to stitch
> it into the packaging infrastructure ... needs to be an exitop or
> post-install script or similar.
> 
> Any hints/suggestions?

Was this an install via the Mac installer?  (did it complete with the
big green tick?  if not, the installed GUI menu provides access to a
log file that I've found useful for diagnosing this class of issue -
one gotcha is it doesnt show all messages by default, IIRC, theres a
verbosity-increase-mechanism in the GUI somewhere).

build/mac/installer-resources/postinstall has the dscl-fu toward the end
that is supposed to be handling this for us.  Looks like similar sorts
of stuff to your attached script, so I guess its not been run, somehow.

cheers.

--
Nathan

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