public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sys-process/acct/files/
@ 2017-07-27 14:19 Thomas Deutschmann
  0 siblings, 0 replies; only message in thread
From: Thomas Deutschmann @ 2017-07-27 14:19 UTC (permalink / raw
  To: gentoo-commits

commit:     5b2280babaff4fedc1231b174ad073120755c392
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 27 14:17:28 2017 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Thu Jul 27 14:18:53 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b2280ba

sys-process/acct: Changed check for systemd in logrotate's postrotate script

Gentoo systemd folk said 'test -d /run/systemd/system' is enough.

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 sys-process/acct/files/acct.logrotate-r1 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-process/acct/files/acct.logrotate-r1 b/sys-process/acct/files/acct.logrotate-r1
index 3587e5acfa6..07696f7329d 100644
--- a/sys-process/acct/files/acct.logrotate-r1
+++ b/sys-process/acct/files/acct.logrotate-r1
@@ -9,7 +9,7 @@
 	create 0600 root root
 	missingok
 	postrotate
-		if type -p systemctl 2>&1 1>/dev/null && systemctl is-system-running 2>&1 1>/dev/null ; then
+		if test -d /run/systemd/system ; then
 			systemctl try-restart acct 1>/dev/null
 		else
 			/etc/init.d/acct --quiet --ifstarted restart


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-07-27 14:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-27 14:19 [gentoo-commits] repo/gentoo:master commit in: sys-process/acct/files/ Thomas Deutschmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox