psacct/SOURCES/psacct.service

16 lines
350 B
SYSTEMD
Raw Permalink Normal View History

2021-11-03 23:29:14 +00:00
[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
2021-12-07 19:24:24 +00:00
ExecReload=/usr/sbin/accton /var/account/pacct
2021-11-03 23:29:14 +00:00
ExecStop=/usr/sbin/accton off
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target