I changed LOGPATH, restarted atopacct service but logs continue to be generated in default location var/log/atop. Waited for a couple of interval cycles to pass to see if the change takes effect, but of no avail. Logs continue to be updated in default path.
How can I instruct atopacctd to use a non-default LOGPATH?
Following is some additional information:
$ more /etc/default/atop
# /etc/default/atop
# see man atoprc for more possibilities to configure atop execution
LOGOPTS="-R"
LOGINTERVAL=600
LOGGENERATIONS=28
LOGPATH=/var/atoplog
No logs in new location
$ ls -la /var/atoplog
total 8
drwxr-xr-x 2 root root 4096 Dec 21 11:24 .
drwxr-xr-x+ 16 root root 4096 Dec 20 20:30 ..
Updates continue in default location
$ ls -la /var/log/atop
total 5336
drwxr-xr-x 2 root root 4096 Dec 21 00:00 .
drwxrwxr-x 20 root syslog 4096 Dec 18 00:00 ..
-rw-r--r-- 1 root root 1356264 Dec 21 00:00 atop_20221220
-rw-r--r-- 1 root root 4087334 Dec 21 12:10 atop_20221221
System info
$ cat /etc/issue
Ubuntu 22.04.1 LTS \n \l
$ uname -a
Linux <hostname>5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Thanks for any help/suggestions to correctly change LOGPATH to a non-default value.
Hi,
I changed
LOGPATH
, restartedatopacct
service but logs continue to be generated in default locationvar/log/atop
. Waited for a couple of interval cycles to pass to see if the change takes effect, but of no avail. Logs continue to be updated in default path.How can I instruct
atopacctd
to use a non-defaultLOGPATH
?Following is some additional information:
No logs in new location
Updates continue in default location
System info
Thanks for any help/suggestions to correctly change
LOGPATH
to a non-default value.