David Sarrazin
|
RE: ftpd and logging using slogger...
|
David Sarrazin
08/25/2009 11:04 AM
post36631
|
RE: ftpd and logging using slogger...
> -----Original Message-----
> From: Sean Boudreau [mailto:community-noreply@qnx.com]
> Sent: August 25, 2009 10:46 AM
> To: ostech-core_os
> Subject: Re: ftpd and logging using slogger...
>
> On Tue, Aug 25, 2009 at 09:06:23AM -0400, Marc Roessler wrote:
> > Hi,
> >
> > don't know if this really fits into this forum category but
> didn't find anything better...
> >
> > I'm trying to run ftpd on our target. Problem is, it tries
> to log via syslog, and we're running slogger.
> >
> > Of course we could run syslogd in parallel - but we'd
> really prefer all logs to be in one place: slogger's logfile.
> Also syslog is not really tailored towards running on an
> embedded target where the majority of directories is not writable.
> >
> > Any suggestions? I thought syslog() messages go to
> /dev/slog anyway on QNX, but it seems this is not true for
> all applications/deamons?
> >
> > I've tried to make syslog log to the console (which should
> be logged by slogger?), using "*.* /dev/console" in
> /etc/syslog.conf... I read somehwere this will be logged by
> slogger... but instead, this is printed to the serial
> console, not slogger..
>
> Try:
>
> # ln -sP slog /dev/log
>
> -seanb
I'm curious why /dev/console isn't working. If you do "echo test >
/dev/console", do you get output in sloginfo? If yes, then it's
something in syslogd, if not, something's wrong with the slogger setup.
Also, if you do "ls -li /dev/console /dev/slog", do they both have the
same inode? If not, then something else may have registered
/dev/console.
David
>
>
>
> _______________________________________________
>
> OSTech
> http://community.qnx.com/sf/go/post36624
>
>
|
|
|
Marc Roessler
|
Re: ftpd and logging using slogger...
|
Marc Roessler
08/25/2009 11:10 AM
post36633
|
Re: ftpd and logging using slogger...
Thanks Sean... works - almost:
Aug 25 17:06:27 6 354080 1047 7:06:27 ftpd[12302-1]: using conservative LOG
IN_NAME_MAX valuedd<Aug J”7:06:27 ftpd[16397-1]: failed to write a pid file: No
such file or directory
....
Seems the log entries written by ftpd arrive at slogger somewhat garbled... it seems it sometimes tries to write
multiple syslog entries within one slogger entry... the special characters printed seem to cause the serial terminal
settings to be garbled when sloginfo is called within the terminal window.
Any ideas?
Greetings,
Marc
|
|
|