Mike Marion wrote:
> Here's one I haven't tried yet, and alas, google returns way too much
> unrelated stuff to help.
> 
> Would like to take a logrotate.d/procmail.log file of:
> /home/mmarion/Mail/procmail.log {
>     compress
>     weekly
>     dateext
>     maxage 999
>     rotate 200
>     missingok
>     olddir archive
>     notifempty
>     size +20480k
>     create 640 mmarion sysadmin
>     sharedscripts
> }
> 
> and do every user in one config.. I know * will work in the file (i.e.
> /home/*/Mail/procmail.log) but I need the "create" line to basically do:
> create 640 $user users
> matching whatever * matched in the file declaration line.  Don't see
> anything obvious in man page that relates to this.. if it can even be
> done.  Also, the olddir directive of 'archive' should expand relatively
> to /home/$user/Mail/archive per user as well.
> 

 (I don't have guru status here, but that won't keep me from talking!)

It sounds like you have a need that wasn't anticipated in the standard
logrotate.

Thoughts:

1. perhaps an email to the maintainer (eric troan wrote the manpage for
the logrotrate that's on my FC4 system)

2. consider freshmeat-listed alternatives
  Perl-Logrotate
  GNU RottLog
  shrotate

3 (ugh) create/delete custom per-user files under /etc/logrotate.d upon
user creation/deletion via some wrapper around normal tools.

..jim


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to