psacct/SOURCES/psacct.service
2021-12-09 14:51:26 +00:00

16 lines
350 B
Desktop File

[Unit]
Description=Kernel process accounting
After=syslog.target
ConditionPathExists=/var/account
[Service]
Type=oneshot
ExecStartPre=/usr/libexec/psacct/accton-create
ExecStart=/usr/sbin/accton /var/account/pacct
ExecReload=/usr/sbin/accton /var/account/pacct
ExecStop=/usr/sbin/accton off
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target