pcp
[Top] [All Lists]

Re: [pcp] Detecting PCP Installation Location?

To: Marko Myllynen <myllynen@xxxxxxxxxx>, pcp developers <pcp@xxxxxxxxxxx>
Subject: Re: [pcp] Detecting PCP Installation Location?
From: Ken McDonell <kenj@xxxxxxxxxxxxxxxx>
Date: Thu, 5 May 2016 06:57:38 +1000
Delivered-to: pcp@xxxxxxxxxxx
In-reply-to: <5729C25A.1050905@xxxxxxxxxx>
References: <5729C25A.1050905@xxxxxxxxxx>
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
On 04/05/16 19:35, Marko Myllynen wrote:
Hi,

Do we know the paths pcp.conf might live on "typical" non-Windows
installations? On Linux it's most likely /etc/pcp.conf, on BSDs perhaps
/etc/pcp.conf or /usr/local/etc/pcp.conf (?), how about OSX or Solaris?
IOW, if I try to detect PCP_SYSCONF_DIR from /etc/pcp.conf and if that
fails, then from /usr/local/etc/pcp.conf, should it most likely work on
Linux/BSD/OSX/Solaris?

Note that I'm not much interested in test installations where it could
be /tmp/pcp/etc/pcp/pcp.conf, in those cases it's up to the user to deal
with it.


Marko,

On all platforms it can be found in $PCP_DIR/etc/pcp.conf ... and for all platforms (that I know about, today), $PCP_DIR is unset by default.

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