[Toybox] syslogd

Isaac idunham at lavabit.com
Thu Jul 25 18:21:19 PDT 2013


On Thu, Jul 25, 2013 at 02:11:38PM -0500, Rob Landley wrote:
> On 07/19/2013 05:02:40 AM, Ashwini Sharma wrote:
> >Hi Rob,
> >
> >   Attached is the syslogd patch. Features supported are
> >
> >usage: syslogd  [-a socket] [-p socket] [-O logfile] [-f config
> >file] [-m
> >interval]
> >[-p socket] [-s SIZE] [-b N] [-R HOST] [-l N] [-nSLKD]
> >
> >In this implementation, __/dev/log__ is used as the default input
> >source
> >and __/var/log/messages__ as the default
> >output destination.
> 
> The second one is in accordance with <strike>the prophecy</strike>
> Filesystem Hirearchy Standard 2.3:
> 
> http://refspecs.linuxbase.org/FHS_2.3/fhs-2.3.html#VARLOGLOGFILESANDDIRECTORIES
> 
> The first one isn't in FHS, and devtmpfs with Aboriginal's kernel
> config isn't providing "log". (It's providing "kmsg", but I dunno if
> that's the same thing.) Where does this data source come from and
> how would I set it up in my own system? (I'm not objecting, I'd just
> like to document how to use it.)
$ stat /dev/log
  File: `/dev/log'
  Size: 0         	Blocks: 0          IO Block: 4096   socket
Device: 5h/5d	Inode: 4052        Links: 1
Access: (0666/srw-rw-rw-)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2013-07-24 18:17:01.636641806 -0700
Modify: 2013-07-22 17:27:26.115667760 -0700
Change: 2013-07-22 17:27:26.115667760 -0700

I'm not sure what creates /dev/log, though.

> >Please review and apply the patch to hg, and let me know for any
> >comments.
> 
> I applied this and the other two commands to the pending directory.
> I didn't apply the previous batch's libc or makefile changes yet.

> >regards,
> >Ashwini
> 
> Thanks,
> Rob

HTH,
Isaac Dunham


 1374801679.0


More information about the Toybox mailing list