psacct/psacct.service

15 lines
303 B
SYSTEMD
Raw Permalink Normal View History

2011-06-29 17:58:07 +00:00
[Unit]
Description=Kernel process accounting
After=syslog.target
ConditionPathExists=/var/account
2011-06-29 17:58:07 +00:00
[Service]
Type=oneshot
ExecStartPre=/usr/libexec/psacct/accton-create
ExecStart=/usr/sbin/accton /var/account/pacct
ExecStop=/usr/sbin/accton off
2011-06-29 17:58:07 +00:00
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target