pcp
[Top] [All Lists]

Re: [pcp] pcp updates - a few odds and sods

To: Nathan Scott <nathans@xxxxxxxxxx>
Subject: Re: [pcp] pcp updates - a few odds and sods
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Wed, 17 Jul 2013 17:36:12 +1000
Cc: pcp@xxxxxxxxxxx
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <226441832.2376946.1374036267711.JavaMail.root@xxxxxxxxxx>
References: <51E52372.9060601@xxxxxxxxxxxxxxxx> <226441832.2376946.1374036267711.JavaMail.root@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7
On 17/07/13 14:44, Nathan Scott wrote:
Hi Ken,

----- Original Message -----
Changes committed to git://oss.sgi.com/kenj/pcp.git dev
...
  src/pmlogger/pmlogger_daily.sh     |   12 +

This fix is giving me failures due to permissions issues when
attempting to write to /var/run/pcp as a regular user (need to
be in root or pcp groups, which pcpqa is not in my QA setup).

Group pcp won't help on my system because /var/run/pcp is like this ...

drwxr-xr-x 2 root root 80 Jul 17 17:06 /var/run/pcp

Affects tests: 1108 151 338 456 503 530 and 564 for me.

Since in real environments pmlogger_daily and pmlogger_check are always (?) going to be run from root's crontab, is the real fix to make QA use $sudo when running these scripts? If yes, I'll fix it. If no, I'm open for suggestions.

Also a suggestion - a .pid suffix on that file would match what
is done by pmcd.

Good point, I'll fix that.

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