Home>

The server (OS is CentOS7) is monitored with logwatch.

The logs sometimes contain the following restart attempts. Not every day.

Nov 27 15:19:50 unknown crond [966]: (CRON) INFO (Shutting down)
Nov 27 15:19:50 unknown crond [5716]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 62% if used.)
Nov 27 15:19:50 unknown crond [5716]: (CRON) INFO (running with inotify support)
Nov 27 15:19:50 unknown crond [5716]: (CRON) INFO (@reboot jobs will be run at computer's startup.)

I don't remember writing the restart with cron, so I don't know where it comes from.

I just searched for "reboot jobs will be run at computer's startup"
There is a description about @reboot in the cronie source /var/run/cron.reboot is
If exists, log is output and the job is not executed. If it doesn't exist,
Because it is to create a file and execute the job
It is correct behavior not to reboot, but it is currently necessary to schedule a reboot
I want to stop this process, what should I do?

  • Answer # 1

      

    I don't remember writing the restart with cron, so I don't know where it comes from.
      I want to stop this process, what should I do?

    @rebootdoes not mean restarting the OS with a crond job, but a crontab setting identifier for executing a job immediately after OS startup.

    Whenis started/restarted, if/var/run/cron.rebootexists, it is not immediately after the OS has started, so the log is output without executing the job. (Even if there is no @reboot setting in crontab).