Hi guys,
----- Original Message -----
> On 29/01/15 07:40, Martins Innus wrote:
> >...
> >> OK, but you don't need to restart pmcd (that is expensive and disrupts
> >> the data stream for the other PMDAs that you might be logging).
> >> Sending pmcd a SIGHUP will restart the proc PMDA.
> > Thanks, I wasn't aware of that but it doesn't seem to work in my case.
> > Similar setup to my other email. No other pcp services running (
> > pmlogger, pmie, pmwebd, pmmgr all stopped).
>
> I sent that mail from the time warp that is labelled "it is OK for all
> PCP processes to run as root" ... later I realized that in the brave new
> world where running as root has become less fashionable this won't work
> if the PMDA needs root priveleges, because once pmcd is able to accept
> the SIGHUP it has downgraded itself to user "pcp" ... so restarting
> _pmcd_ (as root) is the only option in your case.
>
This is now fixable, happily. See point #2 here:
http://oss.sgi.com/archives/pcp/2014-06/msg00111.html
from "2. Restarting / Installing PMDAs", and:
$ grep STARTPMDA src/include/pcp/pmda.h
/*#define PDUROOT_STARTPMDA_REQ 0x9007*/
/*#define PDUROOT_STARTPMDA 0x9008*/
If anyone wants to hack on this, please send me a note - I have some
sample code that will help. It would be good to have this functionality
back; the building blocks are now in place (since pcp-3.10.2) and it'll
be an interesting little hacking project I think.
cheers.
--
Nathan
|