LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-05-2009, 04:24 AM   #1
cooljai
Member
 
Registered: May 2007
Location: /dev/random
Distribution: CentOS, Fedora, RHEL, SuSE
Posts: 62

Rep: Reputation: 15
Question Stop/Start all cronjobs single command


Hi,

In our CentOS 5 box, there are around 25 cronjobs running. Sometimes we needs to comment out all jobs to test something and then uncomment (enable) again.

Just want to confirm here that It would be good to stop crond and start again when required instead of comment/uncomment crons? Of course, it might affect other (system) crons but the duration of such process is very short (and only in daytime) so it should not hamper normal operation.

Plz suggest.
 
Old 02-05-2009, 09:16 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,405

Rep: Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529Reputation: 2529
Quote:
Originally Posted by cooljai View Post
Hi,

In our CentOS 5 box, there are around 25 cronjobs running. Sometimes we needs to comment out all jobs to test something and then uncomment (enable) again.

Just want to confirm here that It would be good to stop crond and start again when required instead of comment/uncomment crons? Of course, it might affect other (system) crons but the duration of such process is very short (and only in daytime) so it should not hamper normal operation.

Plz suggest.
Stopping CRON won't hurt anything, aside from any jobs that might need to run.

If you don't have user-crons, but just one global crontab, stopping cron will get the job done, and shouldn't cause any problems.
 
  


Reply

Tags
cronjobs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop cronjobs overlapping ? MikeAtVillage Linux - General 6 05-23-2008 01:08 AM
cronjobs stop working after expiration of root password nichu Linux - General 1 09-28-2007 03:30 AM
service start/stop command stalls..... CaptainInsane Fedora 2 01-20-2007 04:03 PM
How to stop a command or start over, in a terminal royeo Linux - Newbie 6 08-12-2006 01:21 PM
is there a way to stop cronjobs mail for certain acticities manojthakkar Linux - General 5 12-08-2003 10:56 PM


All times are GMT -5. The time now is 09:48 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration