🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #297447

Re: Mix error.log deletion

#297447
From: SEC3
Date: Thu, 25 Jan 2018 19:05
33 lines
1831 bytes
On 01/25/2018 01:36 PM, Red John wrote:
> I currently have 45 errors in my mix error.log file and want to
> setup a cron job to delete this file every 48 hours.

As the mix user run crontab -e and add this line at the bottom of the
file. Save changes. It will delete your log file every 2 days at 11pm:

0   23   */2   *   *  /bin/rm /home/mix/Mix/error.log &> /dev/null


> If I delete
> the file will mix recreate the file on its own when a new error is
> created. 

Yes.


Alternatively you can turn off Mixmaster logging altogether. In mix.cfg
change this

ERRLOG      error.log

to this

ERRLOG      /dev/null


In the future you can turn logging back on at any time. Just edit
mix.cfg again and reverse the changes.


 SEC3 Pinger Admin
 Contact information at <https://sec3.net>
Technical Details
Message-ID: <p4d9p4$qha$4@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <20180125183642.94B01120083@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <p4d9p4$qha$4@dont-email.me>
Subject: Re: Mix error.log deletion
Date: Thu, 25 Jan 2018 14:05:08 -0500
From: SEC3 <pinger-admin@do-not-email.me>
References: <20180125183642.94B01120083@fleegle.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Content-Transfer-Encoding: 7bit
Cancel-Lock: sha1:lcWowMqvToinrqUHDEXxQohv0s8=
Organization: A noiseless patient Spider
In-Reply-To: <20180125183642.94B01120083@fleegle.mixmin.net>
X-Mozilla-News-Host: news://news.eternal-september.org
X-Received-Bytes: 2047
Lines: 34
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2
Content-Language: en-US
X-Received-Body-Crc: 3834682654
Newsgroups: alt.privacy.anon-server
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Date: Thu, 25 Jan 2018 19:05:09 -0000 (UTC)