Re: [webmin-l] Rotating fetchmail log

Andrey Repin <[email protected]>
Newsgroups gmane.comp.web.webmin.general
Message-ID <[email protected]>
Greetings, Chris!

> 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.


pre/postrotate ... endscript blocks DEFINE a script, that will be run upon
appropriate event. Not "use".


-- 
With best regards,
Andrey Repin
Tuesday, December 27, 2016 06:27:42

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.