SHA256
1
0
forked from pool/acct
acct/logrotate.acct
Kristyna Streitova 3e6544a8e2 Accepting request 313079 from home:scarabeus_iv:branches:Base:System
- Use just /var/log/acct/pacct file and remove the tmpfiles creation
  completely

- Use try-restart not restart on logrotate update, otherwise we could
  suprisingly start the service for user, which is not desired
- Cleanup with spec-cleaner
- Use tmpfiles creation instead of hand-written shell script

OBS-URL: https://build.opensuse.org/request/show/313079
OBS-URL: https://build.opensuse.org/package/show/Base:System/acct?expand=0&rev=45
2015-06-22 15:10:08 +00:00

16 lines
231 B
Plaintext

/var/log/account/pacct {
compress
dateext
maxage 365
rotate 99
size=+4096k
notifempty
missingok
create 640 root root
postrotate
/usr/bin/systemctl try-restart acct.service
endscript
}