[packages/mcelog] no copytruncate; send a signal

glen glen at pld-linux.org
Mon Jun 3 11:44:35 CEST 2013


commit 9f861ca76845349017ed00b12a381a5bdaef8a48
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Mon Jun 3 12:37:44 2013 +0300

    no copytruncate; send a signal
    
    old patch
    2012-05-20 15:12:14.403695855 +0300

 mcelog.init      | 0
 mcelog.logrotate | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/mcelog.init b/mcelog.init
old mode 100644
new mode 100755
diff --git a/mcelog.logrotate b/mcelog.logrotate
index 7575da6..4778221 100644
--- a/mcelog.logrotate
+++ b/mcelog.logrotate
@@ -5,8 +5,8 @@
     size +2048k
     notifempty
     missingok
-    copytruncate
     postrotate
 		chmod 644 /var/log/mcelog
+		[ -r /var/run/mcelog.pid ] && kill -USR1 `cat /var/run/mcelog.pid`
     endscript
 }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mcelog.git/commitdiff/043645d34dd0a48def65c3dae9c43cc06f1dc190



More information about the pld-cvs-commit mailing list