Re: USR1 is not working correctly.

From: Bill Vermillion (bv_at_wjv.com)
Date: 07/31/05


Date: Sat, 30 Jul 2005 23:35:01 GMT

In article <pan.2005.07.30.19.14.56.694793@gmail.com>,
Kristian G. Suarez <kgsuarez@gmail.com> wrote:
>I added "/var/log/thttpd.log www:www 644 7 * @T15 J /var/run/thttpd.pid"
>to /etc/newsyslog.conf. It worked a little bit, but not really.

>The logs rotated, but new entries fail to write to the new log
>file. And I do not know if they are being written to the old
>file, but I doubt it.

>What am I doing wrong? I have read through the man page and don't see
>anything about this in there.

You are doing nothing wrong - but you just don't understand how
these work.

The logging program knows the inode of the file and it also knows
the offset of the file. So even if you removed the file with an
'rm' it will still be open, the disk space won't go away, and the
file will continue to grow. That's a basic part of the Unix
operating system, and there are good reasons for it which are used
quite often.

Move the files and then restart the application and all will be
well. Most things work flawlessly with newsyslog, but not the
httpd daemons.

-- 
Bill Vermillion - bv @ wjv . com


Relevant Pages

  • Re: Service restart itself?
    ... You can configure your to restart itself if an error occurs. ... You can do that from the services.msc - your service - Recovery. ... Kristian F. Thomsen ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: New BSD mascot?
    ... cmitchell@myway.com (WAR) wrote: ... I wouldn't mind it. ... Kristian G Suarez ...
    (comp.unix.bsd.freebsd.misc)