SHA256
1
0
forked from pool/acct
acct/acct.service
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

15 lines
295 B
Desktop File

[Unit]
Description=Process accounting
Documentation=man:accton(8)
After=syslog.target
[Service]
Type=oneshot
RemainAfterExit=true
ExecStartPre=chmod 600 /var/log/account/pacct
ExecStart=/usr/sbin/accton /var/log/account/pacct
ExecStop=/usr/sbin/accton off
[Install]
WantedBy=multi-user.target