Networking-Forums.com

Professional Discussions => Management Tools => Topic started by: thomasb on January 30, 2022, 04:15:18 AM

Title: [cron.d] What does `0 0 * * * root invoke-rc.d atop _cron` do?
Post by: thomasb on January 30, 2022, 04:15:18 AM
The invoke-rc.d call is for SystemV, atop is to monitor the load, but what is _cron in this command?
Title: Re: [cron.d] What does `0 0 * * * root invoke-rc.d atop _cron` do?
Post by: icecream-guy on January 30, 2022, 06:06:38 AM
Cron is a unix scheduler, it makes running items at a specific time more manageable

according to the syntax, this should run 'invoke-rc.d' with root privileges every hour, everyday
Title: Re: [cron.d] What does `0 0 * * * root invoke-rc.d atop _cron` do?
Post by: thomasb on January 30, 2022, 09:44:30 AM
So everything after invoke-rc.d is launched, that is both atop and _cron?
It's mainly the _cron part that I can't figure out what it is. Actually, this is in a file under /etc/cron.d (the admin left and we try to understand what he did...)
Title: Re: [cron.d] What does `0 0 * * * root invoke-rc.d atop _cron` do?
Post by: icecream-guy on January 30, 2022, 10:42:53 AM
well rc.d is a run command

atop = AT Computing's System & Process Monitor

reference
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789690

Sam Morris seems to refer that it might be log rotation: in above reference, he states:

"I guess this (referring to bug) is due to logrotate running 'invoke-rc.d atop _cron'."
and runs:


$ systemctl status atop cron


that might be a place to investigate.
Title: Re: [cron.d] What does `0 0 * * * root invoke-rc.d atop _cron` do?
Post by: thomasb on January 30, 2022, 11:13:05 AM
The server is under Debian 14.04 so there is no systemctl command... We really need to get it straight asap
Thank you very much for the link, I dig this way
Title: Re: [cron.d] What does `0 0 * * * root invoke-rc.d atop _cron` do?
Post by: icecream-guy on January 30, 2022, 12:43:57 PM
Quote from: thomasb on January 30, 2022, 11:13:05 AM
The server is under Debian 14.04 so there is no systemctl command... We really need to get it straight asap
Thank you very much for the link, I dig this way

yes the thread I quotes was a wee bit old, but googling that command yields lots of results to sift through.

mind you that I am no expert in Linux distros,  I know enough what to touch and what not to touch,  I can break things, but takes alot of research to fix.