[rancid] blank log files on initial install

heasley heas at shrubbery.net
Thu May 7 20:45:02 UTC 2015


Thu, May 07, 2015 at 08:41:40PM +0100, Alex DEKKER:
> On 07/05/15 17:36, Scott Granados wrote:
> > This was the exact problem.  I switched to using ; delimiters and it 
> > worked great.
> >
> > Thank you.  Your help was very much appreciated.
> >
> The number of times this comes up in here, I bet heasley wishes he'd 
> added a little check/warning to rancid to cover this :-)
> 
> alexd

perhaps this

Index: bin/control_rancid.in
===================================================================
--- bin/control_rancid.in	(revision 3088)
+++ bin/control_rancid.in	(working copy)
@@ -278,6 +278,9 @@
     exit 1;
 fi
 
+# reading test
+ at PERLV@ -F\; -ane '{if ($F[0] !~ /^\s*#/ && $F[0] !~ /^\s*$/ && $#F < 2 && $F[0] =~ /:/) {print "WARNING: Have you forgotten to update the FS in router.db?\n"; exit;}}' router.db
+
 # generate the list of all, up, & down routers
 cd $DIR
 trap 'rm -fr routers.db routers.all.new routers.down.new routers.up.new \


More information about the Rancid-discuss mailing list