Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/acct/files/
Date: Thu, 27 Jul 2017 14:19:03
Message-Id: 1501165133.5b2280babaff4fedc1231b174ad073120755c392.whissi@gentoo
1 commit: 5b2280babaff4fedc1231b174ad073120755c392
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 27 14:17:28 2017 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 27 14:18:53 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b2280ba
7
8 sys-process/acct: Changed check for systemd in logrotate's postrotate script
9
10 Gentoo systemd folk said 'test -d /run/systemd/system' is enough.
11
12 Package-Manager: Portage-2.3.5, Repoman-2.3.2
13
14 sys-process/acct/files/acct.logrotate-r1 | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/sys-process/acct/files/acct.logrotate-r1 b/sys-process/acct/files/acct.logrotate-r1
18 index 3587e5acfa6..07696f7329d 100644
19 --- a/sys-process/acct/files/acct.logrotate-r1
20 +++ b/sys-process/acct/files/acct.logrotate-r1
21 @@ -9,7 +9,7 @@
22 create 0600 root root
23 missingok
24 postrotate
25 - if type -p systemctl 2>&1 1>/dev/null && systemctl is-system-running 2>&1 1>/dev/null ; then
26 + if test -d /run/systemd/system ; then
27 systemctl try-restart acct 1>/dev/null
28 else
29 /etc/init.d/acct --quiet --ifstarted restart