🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Restarting rsyslog with cron

#283115
From: Cornelis Tromp
Date: Sun, 19 Jun 2016 14:01
37 lines
1603 bytes
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> On Sun, 19 Jun 2016 01:13:46 +0100 (BST), Cornelis Tromp wrote in
> Message-Id: <5e8cd9c5afdecbe030be8bfeb3b9e96f@anon.holland.remailer.nl>:
> 
> 
>>
>> I have configured a cron job to clear mail.log
>> and other log files in /var/log every 24 hours
>>
>> However, rsyslog will not restart...
>>
>> I can run the following command manually having
>> first navigated to  /var/log all is OK.
>>
>>  rm mail.log && touch mail.log ; service rsyslog restart
>>
>> Any suggestions??
> 
> Why not let logrotate take care of it for you?
> 
> /var/log/mail.info
> {
> rotate 4
> daily
> missingok
> notifempty
> compress
> delaycompress
> sharedscripts
> postrotate
> invoke-rc.d rsyslog rotate > /dev/null
> endscript
> }

  I think his fear comes from some people in here saying that mail logs shouldn't be kept on a remailer server.
Technical Details
Message-ID: <66a1e4c9c5a6008a96ca498e28f53ccb@anon.holland.remailer.nl>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!news.usenet.farm!..!..!not-for-mail
References: <slrnnmd3gj.1iv.admin@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <66a1e4c9c5a6008a96ca498e28f53ccb@anon.holland.remailer.nl>
Subject: Re: Restarting rsyslog with cron
Date: Sun, 19 Jun 2016 14:01:13 +0000
From: Cornelis Tromp <nobody@holland.remailer.nl>
References: <slrnnmd3gj.1iv.admin@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!news.usenet.farm!..!..!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: dizum.com - The Internet Problem Provider
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 194.109.206.211
Lines: 37