Invalid linux cron timer task / var / spool / cron / xxx

Hello everyone, I am a duck:

  About Configuring the  / var / spool / cron / root after expression is invalid.

 vi /var/spool/cron/root

  The content root 

0 1/1 * * * ? sh /opt/web_app/sh/check_kibana.sh

Perform alone  check_kibana.sh is no problem. Should be a cron service did not start.

 

Reference article:


https://blog.csdn.net/yongcto/article/details/24889469

carried out:

chkconfig --level 35 crond on

If not then try to perform:

systemctl enable crond.service

Finally it. Cron expressions are used to think linux comes with the service, you do not need to manually start and stop, get up.

Published 115 original articles · won praise 58 · Views 230,000 +

Guess you like

Origin blog.csdn.net/Angry_Mills/article/details/90216205