SHA256
1
0
forked from pool/acct
acct/acct.service

12 lines
269 B
SYSTEMD
Raw Normal View History

[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