summarylogtreecommitdiffstats
path: root/acct.service
diff options
context:
space:
mode:
authorSorin-Mihai Vârgolici2018-12-20 07:26:33 +0200
committerSorin-Mihai Vârgolici2018-12-20 07:26:33 +0200
commit07174abd4520adeb6f83092b7377a1994de57f08 (patch)
tree600f77a051981c7890473c18e8cc1fbecfa83d9c /acct.service
downloadaur-07174abd4520adeb6f83092b7377a1994de57f08.tar.gz
Initial commit
Diffstat (limited to 'acct.service')
-rw-r--r--acct.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/acct.service b/acct.service
new file mode 100644
index 000000000000..3fb123ad32f5
--- /dev/null
+++ b/acct.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Kernel process accounting
+After=syslog.target
+
+[Service]
+Type=oneshot
+ExecStartPre=/usr/lib/acct/accton-create
+ExecStart=/usr/sbin/accton /var/log/acct/acct
+ExecStop=/usr/sbin/accton off
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target