Kristyna Streitova
3e6544a8e2
- 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
15 lines
295 B
Desktop File
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
|