Package: slurm-llnl
Version: 2.3.4-2+b1
Severity: minor
Tags: patch


Dear Maintainer,

Logrotate sends almost every day the following message when operating on /var/log/slurm-llnl/slurmctld.log

From: r...@node05.somedomain.fr
Subject: Cron <root@node05> test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )

/etc/cron.daily/logrotate:
gzip: stdin: file size changed while zipping


I've reproduced this behaviour by starting a few jobs and then manually running logrotate with /etc/logrotate.d/slurm-llnl as its only configuration file.

After adding a delay at the end of the postrotate directive the message disappeared.

I guess the slurmctld daemon need some delay after being sent the SIGHUP signal in order to close the old log file.

Below is a patch that I think solves the problem.

Best regards,
Stéphane Vaillant


-- System Information:
Debian Release: 7.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)


diff -ur slurm-llnl-2.3.4/debian/slurm-llnl.logrotate slurm-llnl-2.3.4-new/debian/slurm-llnl.logrotate --- slurm-llnl-2.3.4/debian/slurm-llnl.logrotate 2011-04-04 15:39:29.000000000 +0200 +++ slurm-llnl-2.3.4-new/debian/slurm-llnl.logrotate 2014-01-17 14:24:28.102374639 +0100
@@ -12,5 +12,6 @@
   size=5M
   postrotate
       /usr/sbin/invoke-rc.d --quiet slurm-llnl reconfig >/dev/null
+      sleep 1
   endscript
 }


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to