Atoptool / atop

System and process monitor for Linux
GNU General Public License v2.0
789 stars 110 forks source link

Enhance atop.service: restart atop on-failure #251

Closed ShirleyFei closed 1 year ago

ShirleyFei commented 1 year ago

In case atop crashes early the day, automatically restart atop.service to continue to record the following hours' logs, instead of relying on the daily atop-rotate.timer to restart next morning.

ShirleyFei commented 1 year ago

After defining "Restart=on-failure", there exists a bad case: dmesg will frequently report logs like "atop invoked oom-killer" once atop exceeds the defined "MemoryLimit=xxM", which may output to syslogs and then occupy quite a lot of disk spaces.

Thus close this PR to avoid the bad case.