[Unit]
Description=Atop process accounting daemon
Documentation=man:atopacctd(8)
After=syslog.target
Before=atop.service

[Service]
Type=forking
PIDFile=/run/atopacctd.pid
ExecStartPre=/bin/sh -c 'if systemctl -q is-active acct psacct; then echo "Process accounting already in use by (ps)acct"; exit 1; fi'
ExecStart=/usr/sbin/atopacctd

[Install]
WantedBy=multi-user.target
