pcp
[Top] [All Lists]

Re: [pcp] pmcd gets stuck with pmda kill

To: Nathan Scott <nathans@xxxxxxxxxx>, Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] pmcd gets stuck with pmda kill
From: Martins Innus <minnus@xxxxxxxxxxx>
Date: Thu, 29 Jan 2015 17:43:45 -0500
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <168392226.3529756.1422567735855.JavaMail.zimbra@xxxxxxxxxx>
References: <54C7FF66.5090503@xxxxxxxxxxx> <54C80E1F.1010909@xxxxxxxxxxxxxxxx> <54C93BFD.5090803@xxxxxxxxxxx> <54C93DED.9020601@xxxxxxxxxxxxxxxx> <54C94943.4040108@xxxxxxxxxxx> <54C95BAB.9050806@xxxxxxxxxxxxxxxx> <168392226.3529756.1422567735855.JavaMail.zimbra@xxxxxxxxxx>
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
Nathan,
On 1/29/2015 4:42 PM, Nathan Scott wrote:
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.
This would be great to have. I won't have time to take this on for the next couple of weeks. I will ping you for the sample code then, unless someone else looks at it in the meantime.

Martins

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