Linuxcrontab suddenly fails to execute to solve the problem encountered by linuxcrontab. record: linuxcrontab has been running for a long time and has not found any problem. suddenly, crontab is not executed one day, I found some solutions for related articles on the Internet,... linux crontab suddenly fails to execute to solve the problems encountered by linux crontab. record: linux crontab has been running for a long time and has not found any problems. suddenly, one day I found that crontab was not executed, and I found some solutions for related articles on the Internet, but they did not solve the problem. later I used ps-elf | grep crond, it turns out that more than 490 processes are running. it is estimated that a job has not been executed yet, and its next execution has started, so the job cannot be executed, use the script to kill all crond processes :#! /Bin/bashfor I in $ (ps-elf | grep crond | awk-F "" '{print $4}'); do kill-9 $ idone restart with root, solution: service crond restart
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.