summarylogtreecommitdiffstats
path: root/acct.service
diff options
context:
space:
mode:
Diffstat (limited to 'acct.service')
-rw-r--r--acct.service14
1 files changed, 14 insertions, 0 deletions
diff --git a/acct.service b/acct.service
new file mode 100644
index 000000000000..94efeca79fa1
--- /dev/null
+++ b/acct.service
@@ -0,0 +1,14 @@
+[Unit]
+Description=Kernel process accounting
+After=syslog.target
+ConditionPathExists=/var/log/account
+
+[Service]
+Type=oneshot
+ExecStartPre=/usr/lib/acct/accton-create
+ExecStart=/usr/sbin/accton /var/log/account/pacct
+ExecStop=/usr/sbin/accton off
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target