🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Restarting rsyslog with cron

#283114
From: Zax
Date: Sun, 19 Jun 2016 12:20
58 lines
2503 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
}


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXZo4TAAoJEC3jHKG+PvqnlPUQAKnRkfNAMbwoUWDtqVkEatY7
VV9LK82L3xVSSB3BY+J1jw5RTVzwscU00eiaFnk/coXcSTHM4M3VsjwYKKpcNUJj
4AZeMTe/6N71J64IlZ3A5T0w+TxN1zQghCnDOH9ccgIeFLl2pxfpF6MULtd+HsHi
LG/cqY636bGCMR66a0L71MdQCNguttMQmM6Lk/N7NHEkOxYAodJ/ZtehkqBNh6S9
SDPEaMpBsZoHqPiZLU5VYKc9uk9ACRPwuwm4f67NUGb+ySUQnAZTx80pgwnTG0ED
G7abR/BTKx0n+ByafW4U45J1N+0VxtRcIkrvl3rBd2MlqoONU26EM5v/XAaSZ7Kq
p0Y50c0+bURN0pXDVLV31T4PKHqXZbhC2QPKH8InfYbdtBmHWCWKzDUUgkGD8ZFW
yt4EPH4ujchcw7ff6EpeCUge9J5MkcAbHjHD51fltEdfTarXzjJ3JnQneOyZMb6B
7zFbTlcZvzk65SNf4BJICQMrIR5tZG/kubp3AeWumGA4o7v/Sp7W2anCyvmUdCCk
JmE7i6+a6zCIyek2IJG5WTq+looJnprHjjlhEiqhXPZduBdJQdzjjMhrdAffTO2H
pT1jXIaD957OGKM7cyD42GDd6EpfQ0+5vTpVx9PieDPEf8naVqQTKKfQ66Fcbn52
UACSzCmEhgBP4MCcCLrl
=p/H9
-----END PGP SIGNATURE-----

-- 
pub   1024D/228761E7 2003-06-04 Steven Crook <steve@mixmin.net>
      Key fingerprint = 1CD9 95E1 E9CE 80D6 C885  B7EB B471 80D5 2287 61E7
sub  4096R/BE3EFAA7  created: 2014-11-14  expires: 2016-11-13  usage: S
Technical Details
Message-ID: <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!not-for-mail
References: <5e8cd9c5afdecbe030be8bfeb3b9e96f@anon.holland.remailer.nl>

Show Full Headers
Complete Article Headers
Message-ID: <slrnnmd3gj.1iv.admin@fleegle.mixmin.net>
Subject: Re: Restarting rsyslog with cron
Date: Sun, 19 Jun 2016 12:20:35 +0000
From: Zax <admin@mixmin.net>
References: <5e8cd9c5afdecbe030be8bfeb3b9e96f@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!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: Mixmin
Injection-Date: Sun, 19 Jun 2016 12:20:35 -0000 (UTC)
User-Agent: slrn/pre1.0.3-10 (Linux)