Marcus Meissner
194484d226
- 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
12 lines
269 B
Desktop File
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
|
|
|