/lib/systemd/system-sleep/atop-pm is in atop 2.3.0-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #!/bin/bash
PATH=/sbin:/usr/sbin:/bin:/usr/bin
case "$1" in
pre) systemctl stop atop
exit 0
;;
post) systemctl start atop
exit 0
;;
*) exit 1
;;
esac
|