If you just want to prevent log files from growing too big, use
logrotate to automatically delete logs. I believe it is setup by
default to keep 4 weeks of logs, but you can adjust the settings in
/etc/logrotate.conf. You will need a cron daemon running to run
logrotate regularly so make sure you haven't disabled cron on boot.
Robert
-----Original Message-----
From: On Behalf
Of Don Tucker
Sent: Friday, May 27, 2011 9:52 AM
To:
Subject: Re: [ts-7000] stopping logging daemons to reduce SD flash wear
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.
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/
|