logging problem
Julian Pace Ross
julian.paceross at gmail.com
Sat Apr 1 18:31:34 GMT 2006
OK I can confirm the following daemon behavior, maybe this will give further
clues...
All the following is without ssh, just straight to the daemon on port 873.
case 1) running the daemon with 2.6.7: log file specified in rsyncd.conf as
/var/log/rsyncd.log
Result: everything works fine and messages get output to the specified log.
case 2) running the daemon with 2.6.7 compiled after running patch <
log-file.diff and patch <logfix.diff, the latter being posted here yesterday
by Wayne.
Result: nothing is output anywhere. Not even the message that the daemon is
starting and listening on port 873 as usual. The rsyncd.conf file was not
touched in both cases.
I would appreciate if someone could confirm that this is replicable.
I noticed that in the log-file.diff there are some conditions of the type '
if (logfile && *logfile) ' ... maybe there is nothing being passed here?
I could try running all the other available patches but I didnt as yet since
I figured the problem has nothing to do with those...
Julian
On 01/04/06, Julian Pace Ross <julian.paceross at gmail.com> wrote:
>
> Some bad news unfortunately.. what I did is exactly this:
> I downloaded 2.6.7, carefully applied the log-file.diff patch, then
> applied the patch Wayne posted yesterday.
>
> What's happenning now is that nothing is being logged in either the syslog
> or the specified log file in the per-user conf file.
> I tried by specifying log files in /var/log, in the user's home directory,
> and also with the syslog facility trick, but nothing.
> What is even stranger is that even when running as a daemon (no ssh)
> nothing gets output anywhere either.
> Seems something in the code is failing or being skipped altogether..
> I lack the resources to look into it deeper than this...
> I wonder if anyone can replicate this?
>
> ..Julian
>
> On 31/03/06, Julian Pace Ross <julian.paceross at gmail.com> wrote:
> >
> > OK! ... will recompile and fire-up.
> > Thanks Wayne
> >
> >
> >
> > On 31/03/06, Wayne Davison <wayned at samba.org> wrote:
> > >
> > > On Fri, Mar 31, 2006 at 06:11:38PM +0200, Julian Pace Ross wrote:
> > > > What is bothering me is that I lost the ability to write in any file
> > >
> > > > other than syslog (/var/log/messages)
> > >
> > > The problem turned out to be that a new "connect ..." message was
> > > getting output in the wrong spot. The attached patch fixes this.
> > > Thanks for letting us know about this!
> > >
> > > ..wayne..
> > >
> > >
> > >
> >
>
-------------- next part --------------
HTML attachment scrubbed and removed
More information about the rsync
mailing list