Article View: alt.privacy.anon-server
Article #283116Re: Restarting rsyslog with cron
From: Anonymous
Date: Sun, 19 Jun 2016 15:16
Date: Sun, 19 Jun 2016 15:16
48 lines
2197 bytes
2197 bytes
On Sun, 19 Jun 2016 15:01:13 +0100 (BST), Cornelis Tromp <nobody@holland.remailer.nl> wrote:
>> -----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.
The OP stated he wants to clear one or logs daily. logrotate can do that if
daily
rotate 0
are used
It's the right tool for the job.
Technical Details
Message-ID:
<smddmbln25sqejdd4hrblmmk65k7unho3i@news.stray.cat.edu>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-mailReferences:
<slrnnmd3gj.1iv.admin@fleegle.mixmin.net> <66a1e4c9c5a6008a96ca498e28f53ccb@anon.holland.remailer.nl>Show Full Headers
Complete Article Headers
Message-ID: <smddmbln25sqejdd4hrblmmk65k7unho3i@news.stray.cat.edu>
Subject: Re: Restarting rsyslog with cron
Date: Sun, 19 Jun 2016 11:16:08 -0400
From: Anonymous
References: <slrnnmd3gj.1iv.admin@fleegle.mixmin.net> <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
Newsgroups: alt.privacy.anon-server
Lines: 49
NNTP-Posting-Host: sly-ocelot.stray.cat.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Keywords: None
X-Face: ,l9N8F.A~!GX.Yz#yYAZtvpk7aF(an!BVo3%Xb,`Q]*$Oh'RtXB5n4iisiGw8
l3nY)lnh(G]9[ud;QeX:W}'r)1F9gEQD4o::mBU9JZAXI\y_0t$P#*/o|!TSG9OtqY+`
NX>cpjf?w~w1RY_}M5731El52pUnI}OaRi~PA+n[fiO>=TS|2h~f%c9zy]*i2LajTWLJ
_X^1No"P#D_(t*t-5n]wW1
User-Agent: nn/6.7.3