logrolling for dummies without root access

Jerry Feldman gaf at blu.org
Fri Aug 3 14:44:41 EDT 2001


That may not work. The problem is that when you open a file in Unix (or 
Linux) you are connected to that physical file. Changing the name of that 
file will not make any difference. You must make sure that the daemon 
process closes that file. Some daemons respond to signals such as 
HUP, which cause them to reread config files, etc. 

Tell me which daemon and file, and I'll find a solution for you.  
On 3 Aug 2001, at 13:47, Seth Gordon wrote:

> On one of our machines at work (running Digital Unix, if that
> matters), there's a daemon process that spits information into a log
> file.  We want to rotate that log file without stopping the daemon.
> My google and freshmeat searches revealed a few application-specific
> log rotaters, references to a "rotate" command that doesn't exist
> on our system, and a lot of noise.
> 
> Is there a utility out there that can handle the job (that doesn't
> need to be run by anyone with special privileges)?  Is this simple
> enough for some clever ad hoc shell script to handle?
>
Jerry Feldman <gaf at blu.org>
Associate Director
Boston Linux and Unix user group
http://www.blu.org
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).



More information about the Discuss mailing list