diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2017-07-27 16:17:28 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2017-07-27 16:18:53 +0200 |
commit | 5b2280babaff4fedc1231b174ad073120755c392 (patch) | |
tree | 7d89cfb842eff478dd26ff8d149b118e0bcc7f9a /sys-process/acct | |
parent | sys-process/acct: Bump to v6.6.4 (diff) | |
download | gentoo-5b2280babaff4fedc1231b174ad073120755c392.tar.gz gentoo-5b2280babaff4fedc1231b174ad073120755c392.tar.bz2 gentoo-5b2280babaff4fedc1231b174ad073120755c392.zip |
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
Diffstat (limited to 'sys-process/acct')
-rw-r--r-- | sys-process/acct/files/acct.logrotate-r1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-process/acct/files/acct.logrotate-r1 b/sys-process/acct/files/acct.logrotate-r1 index 3587e5acfa68..07696f7329dc 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 |