summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-12-31 07:26:18 +0000
committerMike Frysinger <vapier@gentoo.org>2011-12-31 07:26:18 +0000
commitf5097aded07096457261d94b55a8a7d6fabddf97 (patch)
tree1ee8327de4113451fe008e6963290cc53ea46599 /sys-process
parentForce a recent version of linux-headers #396025 by Robin Johnson. (diff)
downloadgentoo-2-f5097aded07096457261d94b55a8a7d6fabddf97.tar.gz
gentoo-2-f5097aded07096457261d94b55a8a7d6fabddf97.tar.bz2
gentoo-2-f5097aded07096457261d94b55a8a7d6fabddf97.zip
Do not always restart acct init.d when rotating logs #395867 by Eugeny Shkrigunov.
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64)
Diffstat (limited to 'sys-process')
-rw-r--r--sys-process/acct/ChangeLog6
-rw-r--r--sys-process/acct/files/acct.logrotate6
2 files changed, 8 insertions, 4 deletions
diff --git a/sys-process/acct/ChangeLog b/sys-process/acct/ChangeLog
index 5689734bced5..8c2ef6dc8006 100644
--- a/sys-process/acct/ChangeLog
+++ b/sys-process/acct/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sys-process/acct
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-process/acct/ChangeLog,v 1.52 2011/10/20 05:07:52 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-process/acct/ChangeLog,v 1.53 2011/12/31 07:26:18 vapier Exp $
+
+ 31 Dec 2011; Mike Frysinger <vapier@gentoo.org> files/acct.logrotate:
+ Do not always restart acct init.d when rotating logs #395867 by Eugeny
+ Shkrigunov.
*acct-6.5.5-r2 (20 Oct 2011)
diff --git a/sys-process/acct/files/acct.logrotate b/sys-process/acct/files/acct.logrotate
index 26f98115e2a0..af6213434cd9 100644
--- a/sys-process/acct/files/acct.logrotate
+++ b/sys-process/acct/files/acct.logrotate
@@ -1,5 +1,5 @@
# Logrotate file for acct
-
+
/var/account/pacct {
compress
delaycompress
@@ -9,6 +9,6 @@
create 0600 root root
missingok
postrotate
- /etc/init.d/acct reload > /dev/null 2>&1
+ /etc/init.d/acct --quiet --ifstarted restart
endscript
-}
+}