From: Conny B. <ko...@ni...> - 2004-03-25 23:10:07
|
2004-01-13 kl. 23.06 skrev Jamie Cameron > On Tue, 2004-01-13 at 22:44, Martin Mewes wrote: >> Couldn't the module just forget about 'logrotate' in particular and >> just "chown" things with perl? I know that Webmin-Modules are just >> creating configuration files but this would be a recovery feature. > > The problem is, log rotation is not kicked off by Webmin - instead, > logrotate is run from a cron job that does not involve Webmin at all. > And any such chowning needs to be done just after the log is re-created For this you're probably better off by using the "postrotate" option in your logrotate log file definition (see the logrotate docs) than hacking webmin. That way, you can hook in and do whatever you need to do just after the rotation happened. //conny |