why does syslogd consult /var/run/loglevel?

Denys Vlasenko vda.linux at googlemail.com
Wed Aug 20 22:04:33 UTC 2008


On Wednesday 20 August 2008 23:15, Robert P. J. Day wrote:
> 
>   a colleague showed me an embedded system he was working on that is
> based on busybox-1.1.3, and was wondering why he wasn't getting his
> DEBUG-level messages logged to /var/log/messages.  while i was getting
> ready to explain stuff like /proc/sys/kernel/printk to him, he got an
> email from one of his co-workers telling him to:
> 
>   echo "7" > /var/run/loglevel
>   killall HUP syslogd
> 
> or something to that effect.  and it worked.
> 
>   huh?  where exactly does syslogd consult /var/run/loglevel? 

I don't see it anywhere in the source.

>   i 
> downloaded the source and poked around, and i don't see any reference
> to that file.  am i just being dense?  why did that work?  thanks.

Maybe /var/run/loglevel is a symlink to /proc/sys/kernel/printk
or some such?
--
vda



More information about the busybox mailing list