logrolling for dummies without root access

Jeffry Smith smith at mclinux.com
Fri Aug 3 14:52:01 EDT 2001


Seth Gordon said:
>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?

Try logrotate.  I've set it up to rotate logs in my home directories, as 
well as generic system logs.  The command itself normally runs via cron.  
In debian it's "apt-get install logrotate" and read the man page.  For 
Alpha, you may have to recompile the source.

jeff

-----------------------------------------------------------------------
Jeffry Smith      Technical Sales Consultant     Mission Critical Linux
smith at missioncriticallinux.com   phone:603.930.9739 fax:978.446.9470
-----------------------------------------------------------------------
Thought for today:  root mode n. 

 Syn. with wizard mode or `wheel mode'. 
   Like these, it is often generalized to describe privileged states
   in systems other than OSes.




-
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