root msgs on ttyv0..

Jez Hancock jez.hancock at munk.nu
Thu May 22 07:46:07 PDT 2003


On Thu, May 22, 2003 at 02:19:12PM +0200, dick hoogendijk wrote:
> On 22 May Jez Hancock wrote:
> > Yes, read the manpage: man syslogd.conf
> > Specifically try changing this line:
> > *.err;kern.debug;auth.notice;mail.crit		/dev/console
> 
> I think I don't mind the messages, but they're on the "wrong tty"
> Having read man syslog.conf and /dev/MAKEDEV I think it's possible to
> have /dev/console point to another tty..
> # "makedev console c 11 0" would appoint ttyv11 to console if I
> understand correctly (?)
That sounds feasible(!).  I was wondering myself what determines where
msgs to /dev/console were sent when I read my own /etc/syslog.conf file
just before replying earlier...

> Is this true? Can /dev/console be "connected" to ttyv11 instead of the
> first one?
I remember at one point I tried outputting everything to ttyv7 as well
as to /var/messages, which worked quite nicely, flicking 'alt-f8' to
switch over to see a decent amount of info...  perhaps try it
yourself?  See how it goes.

There's quite a lot to syslogd, I only ever got as far as adding custom
lines for specific facilities to output info to other files:


console.info                                    /var/log/console.log
*.*;local0.none									/var/log/all.log

!qpopper
*.*                                             /var/log/qpopper.log

!ipmon
*.*                                             /var/log/ipmon.log

!proftpd
*.*                                             /var/log/ftp.log

!oidentd
*.*												/var/log/oidentd.log

etc etc...


See how it goes :)

Best regards,
Jez


More information about the freebsd-questions mailing list