logrotate failed state

2023-11-29 Thread Adam Weremczuk
Hi all, Debian 10.13 Is it normal for logrotate service to go from "inactive (dead)" to "failed (Result: exit-code)" state every time logrotate.timer (active-waiting) kicks in? E.g. "sudo systemctl restart logrotate" brings back "inactive (dead)"

Re: Error with logrotate.

2019-08-13 Thread Gene Heskett
t;> > has long since forced most of us that want that log, into moving > >> > it to /home/username/log and reprogramming logrotate to maintain > >> > it there years ago. > >> > >> So why should user be able to write in /var/log? It is the systems >

Re: Error with logrotate.

2019-08-13 Thread Gene Heskett
t;> > has long since forced most of us that want that log, into moving > >> > it to /home/username/log and reprogramming logrotate to maintain > >> > it there years ago. > >> > >> So why should user be able to write in /var/log? It is the systems >

Re: Error with logrotate.

2019-08-13 Thread Lee
tchmail, procmail, spamassassin, clamav and its ilk, running as >> > the user can access /var/log to keep its logs. Debian's legendary >> > paranoia about who can write a log in /var/log has long since forced >> > most of us that want that log, into moving it to /

Re: Error with logrotate.

2019-08-13 Thread Gene Heskett
On Tuesday 13 August 2019 13:06:23 Dan Purgert wrote: > Gene Heskett wrote: > > On Tuesday 13 August 2019 05:41:52 Dan Purgert wrote: > >> Gene Heskett wrote: > >> > On Tuesday 13 August 2019 02:24:34 deloptes wrote: > >> > [...] > >> > > >> >> I am not aware of any program I've been using > >> >>

Re: Error with logrotate.

2019-08-13 Thread Dan Purgert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Gene Heskett wrote: > On Tuesday 13 August 2019 05:41:52 Dan Purgert wrote: > >> Gene Heskett wrote: >> > On Tuesday 13 August 2019 02:24:34 deloptes wrote: >> > [...] >> > >> >> I am not aware of any program I've been using >> >> for the past 15y th

Re: Error with logrotate.

2019-08-13 Thread Gene Heskett
with their own directories in /var/log (or well, at least by default)? > No, while they may be callable by anyone, they all become the user calling them. > >> [...] > >> Logrotate also does not need to be modified - only for your custom > >> stuff, so it is expect

Re: Error with logrotate.

2019-08-13 Thread Greg Wooledge
On Tue, Aug 13, 2019 at 09:30:34AM +1200, Philip wrote: > I just updated from Debian 8 to 9 and I'm getting the following error.  I'm > guessing it's something to do with permissions? > > Something to do with the create 640 root adm? > > /etc/cron.daily/logrota

Re: OT: While we're talking about logrotate (was: Re: Error with logrotate.)

2019-08-13 Thread rhkramer
: > While we're talking about logrotate, I'd like to ask if anyone else has > seen (and solved) the problem I had with logrotate. > > There were times in the past when I wanted to do things like keep a log (or > a backup of one or more files) something like this: 7 daily lo

Re: Error with logrotate.

2019-08-13 Thread Dan Purgert
etchmail, procmail, clamav or spamd running as me, can > keep their logs in /var/log, the permissions just aren't there after a > reboot. Aren't all four of those system services; with their own system users, with their own directories in /var/log (or well, at least by default)? &

Re: Error with logrotate.

2019-08-13 Thread Gene Heskett
nning as > > the user can access /var/log to keep its logs.  Debian's legendary > > paranoia about who can write a log in /var/log has long since forced > > most of us that want that log, into moving it to /home/username/log > > and reprogramming logrotate to maintain it

Re: Error with logrotate.

2019-08-13 Thread Gene Heskett
n, clamav and its ilk, running as > > the user can access /var/log to keep its logs. Debian's legendary > > paranoia about who can write a log in /var/log has long since forced > > most of us that want that log, into moving it to /home/username/log > > and repr

Re: Error with logrotate.

2019-08-12 Thread deloptes
's legendary paranoia about who > can write a log in /var/log has long since forced most of us that want > that log, into moving it to /home/username/log and reprogramming > logrotate to maintain it there years ago. So why should user be able to write in /var/log? It is the systems log dir

Re: Error with logrotate.

2019-08-12 Thread Erik Christiansen
eep its logs. Debian's legendary paranoia about who > can write a log in /var/log has long since forced most of us that want > that log, into moving it to /home/username/log and reprogramming > logrotate to maintain it there years ago. Nuthin' wrong with that. An individual user

Re: Error with logrotate.

2019-08-12 Thread Sven Joachim
On 2019-08-13 00:38 -0400, Gene Heskett wrote: [rant skipped] > So just where in tunket _are_ we supposed to be able to keep our logs > then? A place that Just Works would sure be appreciated. Putting them under /home is fine, see this comment in /lib/systemd/system/logrotate.service: , | #

Re: Error with logrotate.

2019-08-12 Thread Sven Joachim
o do with the create 640 root adm? >> >> /etc/cron.daily/logrotate: >> error: unable to open /home/philip/logs/access.log.1 for compression >> error: unable to open /home/philip/logs/error.log.1 for compression >> run-parts: /etc/cron.daily/logrotate exited with r

Re: Error with logrotate.

2019-08-12 Thread Gene Heskett
mething to do with the create 640 root adm? > > > > /etc/cron.daily/logrotate: > > error: unable to open /home/philip/logs/access.log.1 for compression > > error: unable to open /home/philip/logs/error.log.1 for compression > > run-parts: /etc/cron.daily/logrotate exited wi

Re: Error with logrotate.

2019-08-12 Thread Teemu Likonen
phi...@treads.nz [2019-08-13T09:30:34+12] wrote: > I just updated from Debian 8 to 9 and I'm getting the following error.  > I'm guessing it's something to do with permissions? > > Something to do with the create 640 root adm? > > /etc/cron.daily/logrotate: >

Error with logrotate.

2019-08-12 Thread Philip
Afternoon, I just updated from Debian 8 to 9 and I'm getting the following error.  I'm guessing it's something to do with permissions? Something to do with the create 640 root adm? /etc/cron.daily/logrotate: error: unable to open /home/philip/logs/access.log.1 for compressio

Re: Debian 10 logrotate

2019-07-24 Thread Gene Heskett
ePaths. > > Thank you. > > Regards, > Tan Shao Yi > > On 21/7/19, 5:55 PM, "Sven Joachim" wrote: > > On 2019-07-21 02:42 +, Tan Shao Yi wrote: > > I upgraded to Debian 10 recently and it looks like logrotate is > > not working on files

Re: Debian 10 logrotate

2019-07-24 Thread Tan Shao Yi
wrote: On 2019-07-21 02:42 +, Tan Shao Yi wrote: > I upgraded to Debian 10 recently and it looks like logrotate is not > working on files outside the /var directory: This is correct. > For example, > > Jul 21 00:00:01 server-name logr

Re: Debian 10 logrotate

2019-07-21 Thread Étienne Mollier
Sven Joachim, on 2019-07-21: > On 2019-07-21 02:42 +, Tan Shao Yi wrote: > > May I know if something has changed recently to cause this? > > It is the ProtectSystem=full directive in logrotate.service which causes > /usr to be mounted read-only for logrotate. See the SANDB

Re: Debian 10 logrotate

2019-07-21 Thread Sven Joachim
On 2019-07-21 02:42 +, Tan Shao Yi wrote: > I upgraded to Debian 10 recently and it looks like logrotate is not > working on files outside the /var directory: This is correct. > For example, > > Jul 21 00:00:01 server-name logrotate[8874]: error: error renaming > /usr

Re: Debian 10 logrotate

2019-07-21 Thread Étienne Mollier
Good day Tan Shao Yi, Tan Shao Yi, on 2019-07-21: > For example, > > Jul 21 00:00:01 server-name logrotate[8874]: error: error renaming > /usr/local/apache/logs/https-error_log.12.gz to > /usr/local/apache/logs/https-error_log.13.gz: Read-only file system Here I would have sugg

Debian 10 logrotate

2019-07-21 Thread Tan Shao Yi
Hi, I upgraded to Debian 10 recently and it looks like logrotate is not working on files outside the /var directory: For example, Jul 21 00:00:01 server-name logrotate[8874]: error: error renaming /usr/local/apache/logs/https-error_log.12.gz to /usr/local/apache/logs/https-error_log.13.gz

Re: Jessie: No logrotate since October 2016?

2018-05-10 Thread Dominique Dumont
On mardi 24 avril 2018 18:40:55 CEST John Cunningham wrote: > I cheated and added logrotate to root's crontab as an ugly hack to get them > rotating. What is the *right* way to get it going again? I just noticed a similar problem on my system. I've installed systemd-cron and p

Re: Jessie: No logrotate since October 2016?

2018-05-08 Thread John Cunningham
On Sun, May 6, 2018 at 5:10 AM Jonathan de Boyne Pollard < j.deboynepollard-newsgro...@ntlworld.com> wrote: > > So bear in mind that your learned ideas about what runs what are no > longer true. > > If I still did sigfiles, this would now be in mine. Thank you very much for your helpful reply. --

Re: Jessie: No logrotate since October 2016?

2018-05-06 Thread Boyan Penkov
-- Boyan Penkov www.boyanpenkov.com > On May 6, 2018, at 05:10, Jonathan de Boyne Pollard > wrote: > > John Cunningham: > >> I hate to wade into the pool of systemd hate, but is this systemd's fault? I >> noticed anacron doesn't exist on this system. Is it supposed to anymore? Or >> is that

Re: Jessie: No logrotate since October 2016?

2018-05-06 Thread Jonathan de Boyne Pollard
John Cunningham: I hate to wade into the pool of systemd hate, but is this systemd's fault? I noticed anacron doesn't exist on this system. Is it supposed to anymore? Or is that one of the things that have been deprecated? If so, how are the /etc/cron.daily jobs getting run these days? You'l

Re: Jessie: No logrotate since October 2016?

2018-05-03 Thread Boyan Penkov
Really late response here, but thanks — some reading of /etc/anacrontab and run-parts does make clear that edits of the crontab will then be run by anacron Thanks kindly! -- Boyan Penkov www.boyanpenkov.com > On Apr 24, 2018, at 14:27, Brad Rogers wrote: > > On Tue, 24 Apr 2018 14:09:06 -0400

Re: Jessie: No logrotate since October 2016?

2018-04-24 Thread Brad Rogers
On Tue, 24 Apr 2018 14:09:06 -0400 Boyan Penkov wrote: Hello Boyan, >that this is the case, and automatically read the crontab, then write >an intelligent anacrontab with sane defaults? From the anacron page on packages.debian.org; This package is pre-configured to execute the daily jobs of th

Re: Jessie: No logrotate since October 2016?

2018-04-24 Thread Boyan Penkov
In this vein, is there a way to intelligently indicate to the system that this is the case, and automatically read the crontab, then write an intelligent anacrontab with sane defaults? Cheers! On 04/24/2018 02:04 PM, Sven Joachim wrote: If your system is not running 24/7, then anacron is very

Re: Jessie: No logrotate since October 2016?

2018-04-24 Thread Sven Joachim
On 2018-04-24 16:40 +, John Cunningham wrote: > I just noticed that logrotate hasn't been running since October 2016 on one > of my Jessie boxes. Manually running logrotate works without issue. This > is approximately the time I upgraded it from Wheezy. I hate to wade into

Jessie: No logrotate since October 2016?

2018-04-24 Thread John Cunningham
Howdy, I just noticed that logrotate hasn't been running since October 2016 on one of my Jessie boxes. Manually running logrotate works without issue. This is approximately the time I upgraded it from Wheezy. I hate to wade into the pool of systemd hate, but is this systemd's fault?

Re: logrotate - got compressed log

2017-02-05 Thread Kamil Jońca
kjo...@poczta.onet.pl (Kamil Jońca) writes: > Andy Smith writes: > >> Hi Kamil, >> >> On Sat, Feb 04, 2017 at 10:11:00AM +0100, Kamil Jońca wrote: >>> I have logrotate with config (excerpt) >>> --8<---cut here---start---

Re: logrotate - got compressed log

2017-02-04 Thread Joe
On Sat, 04 Feb 2017 18:04:12 +0100 kjo...@poczta.onet.pl (Kamil Jońca) wrote: > Andy Smith writes: > > > Hi Kamil, > > > > On Sat, Feb 04, 2017 at 10:11:00AM +0100, Kamil Jońca wrote: > >> I have logrotate with config (excerpt) > >> --8&l

Re: logrotate - got compressed log

2017-02-04 Thread Joe
On Sat, 4 Feb 2017 16:12:50 + Andy Smith wrote: > Hi Kamil, > > On Sat, Feb 04, 2017 at 10:11:00AM +0100, Kamil Jońca wrote: > > I have logrotate with config (excerpt) > > --8<---cut here---start->8--- > > compress >

Re: logrotate - got compressed log

2017-02-04 Thread Kamil Jońca
Andy Smith writes: > Hi Kamil, > > On Sat, Feb 04, 2017 at 10:11:00AM +0100, Kamil Jońca wrote: >> I have logrotate with config (excerpt) >> --8<---cut here---start->8--- >> compress > > […] > >> And since some d

Re: logrotate - got compressed log

2017-02-04 Thread Andy Smith
Hi Kamil, On Sat, Feb 04, 2017 at 10:11:00AM +0100, Kamil Jońca wrote: > I have logrotate with config (excerpt) > --8<---cut here---start->8--- > compress […] > And since some days I started to receive *compressed* old syslog files > :(

logrotate - got compressed log

2017-02-04 Thread Kamil Jońca
I have logrotate with config (excerpt) --8<---cut here---start->8--- compress delaycompress dateext mail root compresscmd /usr/bin/xz uncompresscmd /usr/bin/unxz compressext .xz compressoptions -9 tabooext +.dpkg-bak minsize 1M [...] --8<--

logrotate error (was A full /var partition destroyed 3 hours of my life!)

2016-11-19 Thread Borden Rhodes
> [rsyslog maintainer speaking here] > >> One of the culprits in my full /var partition was a 3 gig syslog file >> which has only been getting bigger since January despite running >> logrotate -f. I try to run it this time but I'm told that it can't >

Re: logrotate does not work on my log (Debian Jessie)

2016-01-28 Thread ikuzar RABE
Ok, thank you, it works. 1) /etc/logrotate.d/my_app should be 644 mode and owner must be root 2) I added 'su ' on the top of the body of the logrotate file 3) /usr/sbin/logrotate -d /etc/logrotate.d/my_app and /usr/sbin/logrotate -f /etc/logrotate.d/my_app help to debug 2016-01-27 22

Re: logrotate does not work on my log (Debian Jessie)

2016-01-27 Thread Martin Read
On 27/01/16 21:37, Gene Heskett wrote: What ails the udev maintainer(s) that seem to think the owner and only human user of this machine is to be denied access to its facilities? The udev maintainers have no idea how many users your system is going to have, and udev itself is not sentient.

Re: logrotate does not work on my log (Debian Jessie)

2016-01-27 Thread Joe
On Wed, 27 Jan 2016 16:37:20 -0500 Gene Heskett wrote: > > What ails the udev maintainer(s) that seem to think the owner and > only human user of this machine is to be denied access to its > facilities? > > It is MY machine, and I built it for ME to use. And if someone in the > udev camp gets

Re: logrotate does not work on my log (Debian Jessie)

2016-01-27 Thread Gene Heskett
On Wednesday 27 January 2016 16:00:59 Glyn Astill wrote: > > From: ikuzar RABE > >To: Glyn Astill > >Cc: "debian-user@lists.debian.org" > >Sent: Wednesday, 27 January 2016, 16:56 > >Subject: Re: logrotate does not work on my log (Debian Jessie) > >

Re: logrotate does not work on my log (Debian Jessie)

2016-01-27 Thread Glyn Astill
> From: ikuzar RABE >To: Glyn Astill >Cc: "debian-user@lists.debian.org" >Sent: Wednesday, 27 January 2016, 16:56 >Subject: Re: logrotate does not work on my log (Debian Jessie) > > > >the ownership of my_app.log.gz is not root (just a simple user, and a

Re: logrotate does not work on my log (Debian Jessie)

2016-01-27 Thread ikuzar RABE
the ownership of my_app.log.gz is not root (just a simple user, and a simple group) 2016-01-27 17:43 GMT+01:00 Glyn Astill : > > > From: ikuzar RABE > >To: debian-user@lists.debian.org > >Sent: Wednesday, 27 January 2016, 16:32 > >Subject: logrotate does not wo

Re: logrotate does not work on my log (Debian Jessie)

2016-01-27 Thread Glyn Astill
> From: ikuzar RABE >To: debian-user@lists.debian.org >Sent: Wednesday, 27 January 2016, 16:32 >Subject: logrotate does not work on my log (Debian Jessie) > > > >Hi all, > >I upgraded my system from Debian 6 to Debian 8 Jessie. logrotate worked on my >log

logrotate does not work on my log (Debian Jessie)

2016-01-27 Thread ikuzar RABE
Hi all, I upgraded my system from Debian 6 to Debian 8 Jessie. logrotate worked on my log on Debian 6 (I got my_app.log.gz when I put /etc/logrotate.d/my_app). But it no longer works on Debian 8. However, I see /var/log/syslog.2.gz syslog.3.gz ...etc. Is that because of systemd ? people who use

logrotate does not work on Jessie

2016-01-27 Thread ikuzar RABE
Hi all, I upgraded my system from Debian 6 to Debian 8 Jessie. logrotate worked on my log on Debian 6 (I got my_app.log.gz when I put /etc/logrotate.d/my_app). But it no longer works on Debian 8. Is that because of systemd ? people who use Arch linux creates logrotate.service and logrotate.timer

Re: logrotate permissions problem

2015-09-01 Thread Reco
Hi. On Tue, 01 Sep 2015 08:27:39 -0600 "D. R. Evans" wrote: > D. R. Evans wrote on 08/31/2015 01:09 PM: > > >> The solution of this problem should be as simple as: > >> > >> chgrp adm /var/log/polipo/pol* > >> rm -f /var/log/polipo/polipo.log.1.gz > > > > OK; I have done that, and will let yo

Re: logrotate permissions problem

2015-09-01 Thread D. R. Evans
D. R. Evans wrote on 08/31/2015 01:09 PM: >> The solution of this problem should be as simple as: >> >> chgrp adm /var/log/polipo/pol* >> rm -f /var/log/polipo/polipo.log.1.gz > > OK; I have done that, and will let you know tomorrow whether the problem has > gone away. > Yep; no notification fr

Re: logrotate permissions problem

2015-08-31 Thread D. R. Evans
Reco wrote on 08/29/2015 12:17 PM: > > Your /etc/logrotate.d/polipo should contain this line: > > su proxy adm > Yep. [stuff elided] > > The solution of this problem should be as simple as: > > chgrp adm /var/log/polipo/pol* > rm -f /var/log/polipo/polipo.log.1.gz OK; I have done that, an

Re: logrotate permissions problem

2015-08-29 Thread Reco
Hi. On Sat, 29 Aug 2015 09:43:27 -0600 "D. R. Evans" wrote: > Ever since the upgrade from wheezy to jessie a few days ago, I have been > receiving the following every day: > > > > /etc/cron.daily/logrotate: > error: error setting owner of /var/log/polip

Re: Logrotate failure SOLVED

2015-07-07 Thread Tony van der Hoff
On 07/07/15 09:24, Darac Marjal wrote: > On Mon, Jul 06, 2015 at 06:16:37PM +0100, Tony van der Hoff wrote: >> Since installing Jessie from scratch on this laptop, I'm getting a >> nightly error message from logrotate: >> > >> if [ -z "`$MYAD

Re: Logrotate failure

2015-07-07 Thread Darac Marjal
On Mon, Jul 06, 2015 at 06:16:37PM +0100, Tony van der Hoff wrote: > Since installing Jessie from scratch on this laptop, I'm getting a > nightly error message from logrotate: > > /etc/cron.daily/logrotate: > error: error running shared postrotate script for '/var/log/m

Logrotate failure

2015-07-06 Thread Tony van der Hoff
Since installing Jessie from scratch on this laptop, I'm getting a nightly error message from logrotate: /etc/cron.daily/logrotate: error: error running shared postrotate script for '/var/log/mysql.log /var/log/mysql/mysql.log /var/log/mysql/mysql-slow.log /var/log/mysql/error.log &

Re: duplicate logrotate configurations for cups

2015-03-08 Thread Bob Proulx
raphaelhertzog.com/2010/10/14/correctly-renaming-a-conffile-in-debian-package-maintainer-scripts/ I think you had previously modified the file and the postinst script detected this and moved it to .dpkg-remove but then the process stopped there. It wasn't in the tabooext list and was therefo

Re: duplicate logrotate configurations for cups

2015-03-07 Thread Laverne Schrock
On Sat, 2015-03-07 at 19:18 +, Brian wrote: > On Sat 07 Mar 2015 at 11:21:36 -0600, Laverne Schrock wrote: > > > cups-daemon is provided by the cups-daemon package, but dpkg cannot find > > the provider for cups.dpkg-remove > > > > I have two questions: > > 1) Where did /etc/logrotate.d/cups.

Re: duplicate logrotate configurations for cups

2015-03-07 Thread Brian
On Sat 07 Mar 2015 at 11:21:36 -0600, Laverne Schrock wrote: > cups-daemon is provided by the cups-daemon package, but dpkg cannot find > the provider for cups.dpkg-remove > > I have two questions: > 1) Where did /etc/logrotate.d/cups.dpkg-remove come from? It looks like you have been using test

duplicate logrotate configurations for cups

2015-03-07 Thread Laverne Schrock
on-Env: Date: /etc/cron.daily/logrotate: error: cups.dpkg-remove:1 duplicate log entry for /var/log/cups/access_log After looking around, I found the culprits were /etc/logrotate.d/cups-daemon and /etc/logrotate.d/cups.dpkg-remove cups-daemon:

Re: logrotate problem

2014-10-08 Thread Catalin Soare
erly in the pid file. (Sure, I can kill it by hand but I really want to know why start-stop-daemon can't kill it because there is probably some underlying problem that needs solving!) > > On Mon, Oct 6, 2014 at 8:06 PM, Joe wrote: >> >> On Mon, 6 Oct 2014 19:51:38 +0100 &g

Re: logrotate problem

2014-10-06 Thread Michael Grant
because there is probably some underlying problem that needs solving!) On Mon, Oct 6, 2014 at 8:06 PM, Joe wrote: > On Mon, 6 Oct 2014 19:51:38 +0100 > Michael Grant wrote: > > > When logrotate fired this month, almost all of my logs remain at zero > > length and the .1 log cont

Re: logrotate problem

2014-10-06 Thread Joe
On Mon, 6 Oct 2014 19:51:38 +0100 Michael Grant wrote: > When logrotate fired this month, almost all of my logs remain at zero > length and the .1 log continues to grow. For example: > > ls -l /var/log > ... > -rw-r- 1 root adm 0 Oct 5 06:25 messages &

logrotate problem

2014-10-06 Thread Michael Grant
When logrotate fired this month, almost all of my logs remain at zero length and the .1 log continues to grow. For example: ls -l /var/log ... -rw-r- 1 root adm 0 Oct 5 06:25 messages -rw-r- 1 root adm 4938 Oct 6 06:56 messages.1 ... -rw-r- 1 root

Re: logrotate cannot rotate some log files

2014-06-14 Thread Andrew McGlashan
On 15/06/2014 10:49 AM, André Nunes Batista wrote: > # logrotate -f -v /etc/logrotate.d/ 2> logrotate.txt > > # cat logrotate.txt | grep syslog > reading config file rsyslog > rotating pattern: /var/log/syslog > considering log /var/log/syslog > rotating log /var/log/sys

Re: logrotate cannot rotate some log files

2014-06-14 Thread Bzzzz
On Sat, 14 Jun 2014 21:49:35 -0300 André Nunes Batista wrote: > 0 -rw-r- 1 root adm 0 Feb 9 07:35 /var/log/syslog.1.gz Move out syslog* to another place and restart syslog (looks like you have a hole in file numbering). If that doesn't work, try to reinstall logrotate and rsy

logrotate cannot rotate some log files

2014-06-14 Thread André Nunes Batista
Hello debianers! I recently noticed that some log files on a wheezy box are not being rotated anymore and are getting rather large. I went through logrotate.conf and logrotate.d and did not spot anything wrong. When I run logrotate -f -v /etc/logrotate.conf, some error messages are shown, but

Re: cron.daily logrotate beating up my server

2014-02-27 Thread Tazman Deville
On Wed, Feb 26, 2014 at 06:43:36AM -0500, Tony Baldwin wrote: > On Wed, Feb 26, 2014 at 06:41:22AM -0500, Tony Baldwin wrote: > > On Wed, Feb 26, 2014 at 12:09:05PM +0200, Andrei POPESCU wrote: > > > On Ma, 25 feb 14, 13:53:39, Tazman Deville wrote: > > > > > > > > I DO have anacron installed. > >

Re: cron.daily logrotate beating up my server

2014-02-26 Thread Andrei POPESCU
On Mi, 26 feb 14, 06:41:22, Tony Baldwin wrote: > On Wed, Feb 26, 2014 at 12:09:05PM +0200, Andrei POPESCU wrote: > > On Ma, 25 feb 14, 13:53:39, Tazman Deville wrote: > > > > > > I DO have anacron installed. > > > > Well, purge (not remove) it then, or adjust /etc/anacrontab as needed ;) > > Th

Re: cron.daily logrotate beating up my server

2014-02-26 Thread Raffaele Morelli
2014-02-26 12:43 GMT+01:00 Tony Baldwin : > On Wed, Feb 26, 2014 at 06:41:22AM -0500, Tony Baldwin wrote: > > On Wed, Feb 26, 2014 at 12:09:05PM +0200, Andrei POPESCU wrote: > > > On Ma, 25 feb 14, 13:53:39, Tazman Deville wrote: > > > > > > > > I DO have anacron installed. > > > > > > Well, purge

Re: cron.daily logrotate beating up my server

2014-02-26 Thread Tony Baldwin
On Wed, Feb 26, 2014 at 06:41:22AM -0500, Tony Baldwin wrote: > On Wed, Feb 26, 2014 at 12:09:05PM +0200, Andrei POPESCU wrote: > > On Ma, 25 feb 14, 13:53:39, Tazman Deville wrote: > > > > > > I DO have anacron installed. > > > > Well, purge (not remove) it then, or adjust /etc/anacrontab as nee

Re: cron.daily logrotate beating up my server

2014-02-26 Thread Tony Baldwin
On Wed, Feb 26, 2014 at 12:09:05PM +0200, Andrei POPESCU wrote: > On Ma, 25 feb 14, 13:53:39, Tazman Deville wrote: > > > > I DO have anacron installed. > > Well, purge (not remove) it then, or adjust /etc/anacrontab as needed ;) > > Kind regards, > Andrei Thanks, Andrei, But could you explain

Re: cron.daily logrotate beating up my server

2014-02-26 Thread Andrei POPESCU
On Ma, 25 feb 14, 13:53:39, Tazman Deville wrote: > > I DO have anacron installed. Well, purge (not remove) it then, or adjust /etc/anacrontab as needed ;) Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser Offtopic discussions among Debian users and developers: http://lists.alio

Re: cron.daily logrotate beating up my server

2014-02-25 Thread Tony Baldwin
( cd / && run-parts > --report /etc/cron.weekly ) > 52 1 � �1 * * � root � �test -x /usr/sbin/anacron || ( cd / && run-parts > --report /etc/cron.monthly ) > > I DO have anacron installed. > I do not know what is relevant from syslog. > I find no mention of cron,

Re: cron.daily logrotate beating up my server

2014-02-25 Thread Raffaele Morelli
n || ( cd / && run-parts > --report /etc/cron.monthly ) > > > I DO have anacron installed. > I do not know what is relevant from syslog. > I find no mention of cron, crontab, or logrotate in /var/log/syslog > at all. > That's quite weird, indeed you should hav

Re: cron.daily logrotate beating up my server

2014-02-25 Thread Tony Baldwin
On Tue, Feb 25, 2014 at 01:10:38PM +, Darac Marjal wrote: > On Mon, Feb 24, 2014 at 01:57:02PM +0100, Tazman Deville wrote: > > I have a little server running here in my office, > > and logrotate kept running at c. 7am, and using up 100% CPU. > > Logrotate *itself* should

Re: cron.daily logrotate beating up my server

2014-02-25 Thread Darac Marjal
On Mon, Feb 24, 2014 at 01:57:02PM +0100, Tazman Deville wrote: > I have a little server running here in my office, > and logrotate kept running at c. 7am, and using up 100% CPU. Logrotate *itself* shouldn't use much CPU. But there are a couple of things I can think that might make it

Re: cron.daily logrotate beating up my server

2014-02-25 Thread Tazman Deville
On Mon, Feb 24, 2014 at 07:38:24PM -0300, André Nunes Batista wrote: > On Mon, 2014-02-24 at 13:57 +0100, Tazman Deville wrote: > > I have a little server running here in my office, > > and logrotate kept running at c. 7am, and using up 100% CPU. > > I changed the line i

Re: cron.daily logrotate beating up my server

2014-02-25 Thread Tazman Deville
On Mon, Feb 24, 2014 at 11:15:19PM +0200, Andrei POPESCU wrote: > On Lu, 24 feb 14, 15:06:48, Tazman Deville wrote: > > On Mon, Feb 24, 2014 at 01:57:02PM +0100, Tazman Deville wrote: > > > I have a little server running here in my office, > > > and logrotate kept runn

Re: cron.daily logrotate beating up my server

2014-02-24 Thread André Nunes Batista
On Mon, 2014-02-24 at 13:57 +0100, Tazman Deville wrote: > I have a little server running here in my office, > and logrotate kept running at c. 7am, and using up 100% CPU. > I changed the line in /etc/crontab to run cron.daily scripts > at 4:15am, instead of 7:whateveritwas am. > 15

Re: cron.daily logrotate beating up my server

2014-02-24 Thread Andrei POPESCU
On Lu, 24 feb 14, 15:06:48, Tazman Deville wrote: > On Mon, Feb 24, 2014 at 01:57:02PM +0100, Tazman Deville wrote: > > I have a little server running here in my office, > > and logrotate kept running at c. 7am, and using up 100% CPU. > > I changed the line in /etc/cron

Re: cron.daily logrotate beating up my server

2014-02-24 Thread Tazman Deville
On Mon, Feb 24, 2014 at 01:57:02PM +0100, Tazman Deville wrote: > I have a little server running here in my office, > and logrotate kept running at c. 7am, and using up 100% CPU. > I changed the line in /etc/crontab to run cron.daily scripts > at 4:15am, instead of 7:whateveritwa

cron.daily logrotate beating up my server

2014-02-24 Thread Tazman Deville
I have a little server running here in my office, and logrotate kept running at c. 7am, and using up 100% CPU. I changed the line in /etc/crontab to run cron.daily scripts at 4:15am, instead of 7:whateveritwas am. 15 4 * * * Also, in cron.daily/logrotate I added nice -n 15 I made these changes

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread Bob Proulx
Steffen Dettmer wrote: > logrotate seems to execute "postrotate" scripts using /bin/sh and I > found no way where to specify which script interpreter to use. > Starting with a she-bang line seem to have no effect. Even if I > manually run logrotate as root who has /bin/bash

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread Ralf Mardorf
On Thu, 2013-12-05 at 17:03 +, Darac Marjal wrote: > Just a thought, how about making your postrotate command be "/bin/bash > /path/to/myscript.sh"? This was already mentioned, resp. the shebang would work, if the script is called by simply path/myscript.sh, IOW without a leading sh, which usu

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread Darac Marjal
On Thu, Dec 05, 2013 at 10:31:01AM +0100, Steffen Dettmer wrote: > Hi, > > logrotate seems to execute "postrotate" scripts using /bin/sh and I > found no way where to specify which script interpreter to use. > Starting with a she-bang line seem to have no effect.

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread David Guntner
Steffen Dettmer grabbed a keyboard and wrote: > Hi, > > logrotate seems to execute "postrotate" scripts using /bin/sh and I > found no way where to specify which script interpreter to use. > Starting with a she-bang line seem to have no effect. Even if I > manually r

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread Ralf Mardorf
On Thu, 2013-12-05 at 10:44 +0100, Ralf Mardorf wrote: > On Thu, 2013-12-05 at 10:43 +0100, Ralf Mardorf wrote: > > On Thu, 2013-12-05 at 10:31 +0100, Steffen Dettmer wrote: > > > logrotate seems to execute "postrotate" scripts using /bin/sh and I > > > found

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread Ralf Mardorf
On Thu, 2013-12-05 at 10:43 +0100, Ralf Mardorf wrote: > On Thu, 2013-12-05 at 10:31 +0100, Steffen Dettmer wrote: > > logrotate seems to execute "postrotate" scripts using /bin/sh and I > > found no way where to specify which script interpreter to use. > > Starti

Re: How to use logrotate postrotate *bash* script

2013-12-05 Thread Ralf Mardorf
On Thu, 2013-12-05 at 10:31 +0100, Steffen Dettmer wrote: > logrotate seems to execute "postrotate" scripts using /bin/sh and I > found no way where to specify which script interpreter to use. > Starting with a she-bang line seem to have no effect. Even if I > manually run

How to use logrotate postrotate *bash* script

2013-12-05 Thread Steffen Dettmer
Hi, logrotate seems to execute "postrotate" scripts using /bin/sh and I found no way where to specify which script interpreter to use. Starting with a she-bang line seem to have no effect. Even if I manually run logrotate as root who has /bin/bash as login shell, /bin/sh is used. H

Re: logrotate: file size changed while zipping

2013-08-18 Thread Slavko
Hi, I am sorry for blank post - my mistake. Dňa 18.08.2013 11:00 Pertti Kosunen wrote / napísal(a): > On Thu, 26 Jul 2012 10:42:30 +0200, Slavko wrote: >> in last days (perhaps weeks) i get daily mail from cron's logrotate task >> with this: >> >> /etc/cron.daily

Re: logrotate: file size changed while zipping

2013-08-18 Thread Slavko
Dňa 18.08.2013 11:00 Pertti Kosunen wrote / napísal(a): > On Thu, 26 Jul 2012 10:42:30 +0200, Slavko wrote: >> in last days (perhaps weeks) i get daily mail from cron's logrotate task >> with this: >> >> /etc/cron.daily/logrotate: >> gzip: stdin: file size

Re: logrotate: file size changed while zipping

2013-08-18 Thread Pertti Kosunen
On Thu, 26 Jul 2012 10:42:30 +0200, Slavko wrote: in last days (perhaps weeks) i get daily mail from cron's logrotate task with this: /etc/cron.daily/logrotate: gzip: stdin: file size changed while zipping I had this too over a year on testing/unstable. I did put --verbose to logrotat

Re: let logrotate create an new empty file?

2012-09-24 Thread Camaleón
s, and changed the rights to the user from the script: > mkdir /var/log/script > chown script.root /var/log/script > chmod 640 /var/log/script > > But logrotate "complains": > = > ~# logrotate -d > /etc/logrotate.d/scrip

Re: let logrotate create an new empty file?

2012-09-24 Thread Meike Stone
/script chown script.root /var/log/script chmod 640 /var/log/script But logrotate "complains": ===== ~# logrotate -d /etc/logrotate.d/script reading config file /etc/logrotate.d/script reading config info for /var/log/script/script.log Handling 1 logs

Re: let logrotate create an new empty file?

2012-09-23 Thread lee
Meike Stone writes: >> >From your explanations, I understand that logrotate would create the >> file if logrotate rotates the file, which requires the file to exist in >> the first place, so create it manually and let logrotate rotate and >> create the file in the futu

Re: let logrotate create an new empty file?

2012-09-21 Thread Camaleón
On Fri, 21 Sep 2012 13:55:33 +0200, Meike Stone wrote: >> >From your explanations, I understand that logrotate would create the >> file if logrotate rotates the file, which requires the file to exist in >> the first place, so create it manually and let logrotate rotate and

Re: let logrotate create an new empty file?

2012-09-21 Thread Meike Stone
> >From your explanations, I understand that logrotate would create the > file if logrotate rotates the file, which requires the file to exist in > the first place, so create it manually and let logrotate rotate and > create the file in the future. Does that work? (This somewhat i

  1   2   3   4   >