[rancid] PAR Not Changing Process Counts

Piegorsch, Weylin William weylin at bu.edu
Sat Jul 15 03:36:49 UTC 2023


> Are you possibly using an installation from a linux package system?.

My installation engineer said he started with a clean install of CentOS 6.10... well, as clean as our organization provides us, not sure what customizations they made.  Anyway, on top of that install, he downloaded the tarball of what was then-current version, and ran through the README to install it.





 
Weylin Piegorsch |  Manager, Network Engineering
Boston University Information Services & Technology
weylin at bu.edu | 617.353.8128 | bu.edu/tech
Listen. Learn. Lead.




-----Original Message-----
From: heasley <heas at shrubbery.net> 
Sent: Friday, July 14, 2023 11:18 AM
To: Piegorsch, Weylin William <weylin at bu.edu>
Cc: rancid-discuss at shrubbery.net
Subject: Re: [rancid] PAR Not Changing Process Counts

Thu, Jul 13, 2023 at 03:42:29AM +0000, Piegorsch, Weylin William:
> I worked with Heasley (very) sporadically over the past few years on this.  Short version: control-rancid has around line 122:
> 
> 
> if [ -z "$ENVFILE" ] ; then
> 
>     ENVFILE="${prefix}/etc/rancid.conf"
> 
> fi
> 
> if [ -f "$ENVFILE" ] ; then
> 
>     . $ENVFILE
> 
> fi
> 
> 
> On my setup, ENVFILE didn’t exist, so the '-z' flag caught and tried to set it.  only problem? ${prefix} also doesn’t exist, so it was trying to find /etc/rancid.conf which yet again also doesn’t exist.

That line should not have been ${prefix}, it should have been @sysconfdir@ in the original source and that would have been replaced by the makefile or make process.  And it has been that way since at least 2014, which is long before rancid 3.4.1.

Are you possibly using an installation from a linux package system?.

> This was all supposed to have been properly set with autoconf during installation.  Near as we can tell, something about my installation made that not stick.  As this is an old problem, an old version of code, and with my fix there are no other identified problems, we didn’t pursue it further.  I manually added prefix=<rancid home directory> just after the copyright notice. This is a solution unique to my setup, but my system now works.


More information about the Rancid-discuss mailing list