[rancid] PAR Not Changing Process Counts

heasley heas at shrubbery.net
Fri Jul 14 15:18:09 UTC 2023


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