Quoting "James G. Sack (jim)" <[EMAIL PROTECTED]>:

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

Yeah, the list would be pretty quiet if we all did keep quiet unless a guru. ;)

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

Yeah, I think I did.

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

That's what I've done for now... I used a nice little loop on the cmd line:
for user in <userlist>
do
sed -e 's/mmarion/'$user'/g' /etc/logrotate.d/procmail.log > /tmp/procmail-$user.log
  sudo mv /tmp/procmail-$user.log /etc/logrotate.d/.
done

Which is good enough for now. Was just thinking I'd love to see the wildcard and variable like I mentioned. More elegant that way.

--
Mike Marion-Unix SysAdmin/Staff Engineer-http://www.miguelito.org
Marge: "Homer, sitting that close to the TV can't be good for you."
Homer: "Talking while the TV's on can't be good for you!"
==> Simpsons



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

Reply via email to