[prev in list] [next in list] [prev in thread] [next in thread] 

List:       proftpd-users
Subject:    Re: [Proftpd-user] rotating files
From:       TJ Saunders <tj () castaglia ! org>
Date:       2006-05-30 16:37:24
Message-ID: Pine.LNX.4.58.0605300931400.21807 () mercury ! skynetbb ! com
[Download RAW message or body]


> Seems that mod_ctrls opens it only on (re)start, while mod_log and
> mod_tls open new logfile after new process is started.

This is deliberate.  The mod_ctrls ControlsLog is meant to be a log file
for the controls server, which is part of the parent daemon, and not part
of any forked session-handling process.  That is why that log file is
opened on parsing.

The mod_log, mod_tls, and other modules have their log files record
information from sessions, and thus their log files are opened by each
session-handling process.

> Also, I still miss feature that would cause all logs to be reopened...
> Where does this (or these?) belong to?

It doesn't belong anywhere; there are reasons why different log files are
opened at different times (see above), and why not all log files can be
reopened on SIGHUP.  For example, the TransferLog is opened by each
session process prior to a chroot(); these processes, upon receiving a
SIGHUP, cannot close/reopen that file, as the path to that file will no
longer be valid within that chrooted process.

TJ

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

   Expectation is the root of all disappointment.

     -Scott Simon

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
ProFTPD Users List   <proftpd-users@proftpd.org>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic