Re: [webmin-l] Rotating fetchmail log
Andrey Repin <[email protected]>
| Newsgroups | gmane.comp.web.webmin.general |
|---|---|
| Message-ID | <[email protected]> |
Greetings, Chris!
> On Mon, 2016-12-26 at 14:18 -0800, Jamie Cameron wrote:
>> Try logging in as root via SSH and running :
>>
>> logrotate -f /etc/logrotate.conf
>>
> Thank you for that. I think I'm getting closer. I now have a
> fetchmail.logrotate file in /etc/logrotate.d which reads
> /home/chris/fetchmaillog {
> weekly
> rotate 8
> compress
> datext
> missingok
> notifempty
> create 0664 chris chris
> sharedscripts
> postrotate
> /usr/local/bin/fetchmail --quit; fetchmail -v --nokeep --
> nosyslog --logfile /home/chris/fetchmaillog --uidl -m procmail
> fi;
> endscript
> }
...
> I'm not sure though if the postrotate command will work correctly since
> the commands below it are not a true script.
What makes you saying that?
--
With best regards,
Andrey Repin
Tuesday, December 27, 2016 03:09:13
Sorry for my terrible english...
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
-
Forwarded by the Webmin mailing list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list