[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: user-level logrotate?

On Thu, Oct 02, 2003 at 10:25:24AM +0200, Henrik Christian Grove wrote:
| "Monique Y. Herman" <spam@bounceswoosh.org> writes:
| > I have a few applications that create log files in my home directory. Is
| > there a (simple) way to use logrotate as a normal user?
| I see no reason that logrotate should require special privileges


| for any but reading and writing it's state file, so try something
| like:
| logrotate -s ~/private-logrotate-status ~/private-logrotate.conf

Put this in your personal crontab ('crontab -e').  My (personal)
crontab entry looks like
  # rotate personal logs
  @daily    /usr/sbin/logrotate --state $HOME/etc/logrotate.status $HOME/etc/logrotate.conf

It works well.


If Microsoft would build a car...
... Occasionally your car would die on the freeway for no reason. You
would have to pull over to the side of the road, close all of the car
windows, shut it off, restart it, and reopen the windows before you
could continue. For some reason you would simply accept this.

Attachment: pgpt_AGJQyIVY.pgp
Description: PGP signature

Reply to: