pcp
[Top] [All Lists]

Re: [pcp] Non-root pmcd and SIGHUP issue

To: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Subject: Re: [pcp] Non-root pmcd and SIGHUP issue
From: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed, 5 Dec 2012 16:55:01 -0500 (EST)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1354738939.4291.45.camel@xxxxxxxxxxxxxxxx>
Reply-to: Nathan Scott <nathans@xxxxxxxxxx>

----- Original Message -----
> On Wed, 2012-12-05 at 21:35 +1100, Ken McDonell wrote:
> > I think there is a lurking problem with the non-root pmcd changes.
> > 
> > The directory and all of the log files in /var/log/pcp/pmcd are
> > owned by
> > root.
> 
> This looks like a debian packing issue ... which would explain why
> the RedHat folk have not seen it.
> 
> Making the directory owned by "pcp" seems to solve the problem [ditto
> for the other PCP directories in /var/log/pcp].
> 

The debian/pcp.postinst script has:
chown -R pcp:pcp /var/log/pcp/{pmcd,pmlogger,pmie,pmproxy} 2>/dev/null

I thought that'd change over an existing install (seems to have for my
laptop).  There are some lintian warnings about this script containing
bash-isms though (the use of curly braces on the above line, maybe that
is part of the problem).  lintian also requires that script to (re)gain
use of -e which I incorrectly removed when adding the new pcp account,
and also its complaining about the new tmpdir - we may have to go back
to using /var/tmp after all, for Debian packages, it seems.

cheers.

--
Nathan

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