[SOLVED] What are the risks involved in restarting crond?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Basically I'm seeing that crond has some very long running processes that are taking up CPU on a total of 4 servers. I restarted crond on the server that had what looked to be the least important "stuff" in the crontab, and it completely fixed the CPU issue. However, before I restart crond on the other servers, I just want to make sure that I am not potentially borking the system by doing so... I assume whatever operations that crond are set to perform in the crontab will resume when I restart it correct?
crond is a scheduler. If you stop it and it isn't currently in the middle of a process it hurts nothing. When you restart it then it runs things as scheduled as it doesn't care which invocation you did.
Note however that "at" jobs (vs. "cron" jobs) are submitted on the fly but controlled by crond - if you have any "at" jobs you might need to verity they're still there after the restart with "at -l" and if not resubmit them.
*BTW the problem with your previous thread (http://www.linuxquestions.org/questi...ly-4175412544/) is that the cause for resource hogging was never identified. In this thread you speak about "very long running processes" but without being specific. In some cases you might be able to assign a task to a specific CPU, nice the job or ionice it but it depends. Some jobs just require much resources.
Thanks for the information everyone! I had to "do it live" bill o'reilly style and went ahead and restarted crond, and it looks to be ok. It resolved the CPU on all the servers except one, I'm going to have to start a separate thread since it looks to be a different issue that is also over my head.
It would be interested to know which Linux distributions (not other Operating Systems, after all this question was asked in the Linux Newbie forum) still use a cron job atrun entry (which basically runs atd anyway) and not for backward compatibility reasons?