Re: [webmin-l] Rotating fetchmail log
Chris <[email protected]>
| Newsgroups | gmane.comp.web.webmin.general |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 2016-12-27 at 03:09 +0300, Andrey Repin wrote:
> 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?
>
I'm just assuming that since from what I understand in reading the
logrotate man page that prerotate and postrotate use a script.
Chris
--
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
18:55:54 up 6 days, 4:01, 1 user, load average: 0.76, 0.59, 0.32
Ubuntu 16.04.1 LTS, kernel 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9
23:50:32 UTC 2016
------------------------------------------------------------------------------
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
signature.asc
(application/pgp-signature, 181 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEUEABECAAYFAlhhvJcACgkQ43Kn2pjmcFxe+wCcC8cmD6iXXxTDznop5LCB7RYS +GUAliWXYHjPTT5qm/W9olfnevi7Id0= =cJdT -----END PGP SIGNATURE-----