Rob writes:
> I run multiple instances of BackupPC, and recently attempted upgrading to
> 3.0.
>
> I run the different instances as different users, and out of different
> $TopDir directories. I'm unable to start the deamon for BackupPC2 (my 2nd
> instance)
>
> So it seems to me like the $Conf{ConfDir} variable is getting ignored in the
> conf.pl.
That's correct: the one piece of information that is stored
separately from the config.pl file is that path to the config
file itself. That's how BackupPC finds the config file. As
you discovered, it is stored in lib/BackupPC/Lib.pm.
> The BackupPC daemon fails becuase of a UID error- that's becuase it keeps
> reading /etc/BackupPC/conf.pl and not /etc/BackupPC2/conf.pl
> (i know this because i did an strace)
>
> So i decided to trace down where this variable is getting picked up. I
> noticed in the Lib.pm code, i see that the confdir is referenced as
> "$confDir" and not as "$ConfDir"
>
> I don't really know perl at all, but does this seem right?
It's correct. $confDir is a function argument.
> When i corrected the case on these variables, my UID problem didn't go away.
> When i changed the (hardcoded?) /etc/BackupPC value to my intended
> /etc/BackupPC2 everything worked fine.
That's right: you have now correctly pointed your second installation
at the second config.pl file.
With FHS (the default in 3.0.0) you need to use the --config-dir
option to configure.pl to explicitly place the config dir on the
second installation in a new place. You manually made the right
change.
Craig
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
BackupPC-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/backuppc-devel
http://backuppc.sourceforge.net/