SHA256
1
0
forked from pool/acct
acct/acct.service
Marcus Meissner 194484d226 Accepting request 177928 from home:marc_schuetz:branches:Base:System
- Converted rc file to systemd unit file.
- Fixed a bug where the accounting file wasn't reopened after
  logrotate, because force-reload isn't implemented.

OBS-URL: https://build.opensuse.org/request/show/177928
OBS-URL: https://build.opensuse.org/package/show/Base:System/acct?expand=0&rev=28
2013-06-07 10:43:36 +00:00

12 lines
269 B
Desktop File

[Unit]
Description=Process accounting
Documentation=man:accton(8)
[Service]
Type=oneshot
RemainAfterExit=true
ExecStartPre=/bin/sh -c 'test -e /var/account/pacct || touch /var/account/pacct'
ExecStart=/usr/sbin/accton /var/account/pacct
ExecStop=/usr/sbin/accton off