Article View: alt.privacy.anon-server
Article #283112Re: Restarting rsyslog with cron
From: Nathan Hale
Date: Sun, 19 Jun 2016 01:25
Date: Sun, 19 Jun 2016 01:25
25 lines
1558 bytes
1558 bytes
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > 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?? This is the way I do it. Just a bit over kill: # empty mail.log 00 23 * * * wipe -iqkf /var/log/mail.log &> /dev/null 05 23 * * * cat /dev/null > /var/log/mail.log You have to have wipe installed to wipe the file: wipe - Secure file deletion apt-get update && apt-get install wipe
Technical Details
Message-ID:
<1f0c2895c37b29d99ac0187ff85efafe@remailer.org.uk>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:
<5e8cd9c5afdecbe030be8bfeb3b9e96f@anon.holland.remailer.nl>Show Full Headers
Complete Article Headers
Message-ID: <1f0c2895c37b29d99ac0187ff85efafe@remailer.org.uk> Subject: Re: Restarting rsyslog with cron Date: Sun, 19 Jun 2016 01:25:51 +0000 From: Nathan Hale <nobody@remailer.org.uk> 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!news.usenet.farm!..!..!not-for-mail Comments: This message did not originate from the Sender address above. It was remailed automatically by anonymizing remailer software. Please report problems or inappropriate use to the remailer administrator at <abuse@remailer.org.uk>. Newsgroups: alt.privacy.anon-server Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net Lines: 25