var is mysteriously clogged

Walter Dnes waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org
Tue Dec 27 07:03:30 UTC 2005


On Mon, Dec 26, 2005 at 08:27:29AM -0500, Sy Ali wrote
> Upon rebooting, my mysterious issue went away.

  Repeat after me...
  linux != Windows
  Thou shalst not rebooteth

  Since it was syslogd holding the files open (as per your previous
message) all you had to do was to restart syslogd.  That should've
released the filespace.  There is a "postrotate" clause in logrotate
that can do this for you automatically.  I use syslog-ng which uses a
"reload" option; syslogd might use "restart".  Check the man pages for
your software.  Here's my /etc/logrotate.d/syslog-ng file...


# $Header: /var/cvsroot/gentoo-x86/app-admin/syslog-ng/files/syslog-ng.logrotate,v 1.2 2004/07/18 02:25:02 dragonheart Exp $
#
# Syslog-ng logrotate snippet for Gentoo Linux
# contributed by Michael Sterrett
#

/var/log/messages {
    sharedscripts
    postrotate
        /etc/init.d/syslog-ng reload > /dev/null 2>&1 || true
    endscript
}


-- 
Walter Dnes <waltdnes-SLHPyeZ9y/tg9hUCZPvPmw at public.gmane.org> In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list