ts-7000
[Top] [All Lists]

Re: [ts-7000] stopping logging daemons to reduce SD flash wear

To:
Subject: Re: [ts-7000] stopping logging daemons to reduce SD flash wear
From: Jim Jackson <>
Date: Fri, 27 May 2011 17:17:17 +0100 (BST)


On Fri, 27 May 2011, Don Tucker wrote:

> I moved S11klogd to K89klogd and S10sysklogd to K90sysklogd, as 
> instructed by the README in /etc/rc2.d. But, that did not seem to work. I 
> tried your suggestion, Jim, and that seemed to stop most of the logs 
> except for dmesg. Thanks! I guess dmesg is OK to keep, since that is just 
> the log of loading the drivers at boot, if I understand correctly. Does 
> anyone know where dmesg gets called? I would like to prevent it from 
> growing too big, if possible.

I think /etc/rc2.d/Snnklogd (soft link to /etc/init.d/klogd) is the 
culprit. Do the same mv  /etc/rc2.d/Snnklogd  /etc/rc2.d/NO_Snnklogd
It starts the klogd daemon which handles kernel log messages. You'll end up 
with no log. 



> 
> Don
> On 5/27/2011 3:24 AM, Jim Jackson wrote:
> > 
> > 
> > 
> > On Thu, 26 May 2011, Rekcut_Nod wrote:
> > 
> > > I am using a Debian SD image on a TS-7260. I have turned off the
> > > bootlogd script in /etc/rcS.d and the klogd, and sysklogd scripts in
> > > /etc/rc2.d. However, the following logs in /var/log continue to update:
> > >
> > > daemon.log
> > > dmesg
> > > faillog
> > > messages
> > > syslog
> > > user.log
> > > wtmp
> > 
> > That means syslogd is running, so you still have it starting up on boot.
> > Exactly what did you do?
> > 
> > Simply moving /etc/rc2.d/Snn_sysklogd to /etc/rc2.d/NO_Snn_sysklogd
> > should prevent it being started on boot.
> > 
> > > I want to minimize the amount of writes done to preserve the SD card for
> > > long-duration unsupervised operation. Can someone tell me how to keep
> > > these logs from being written to?
> > >
> > > Thanks,
> > > Don
> > >
> > >
> > 
> > 
> 
> 


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU