LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 09-19-2010, 05:40 AM   #1
ge_shekhar
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Rep: Reputation: 0
cron job problem.


Hi ,

I have setup an application in crontab, but whenever i restart my server cron job dosent start automatically every time i have to start it as service crond start. Please advice is there any way to start cron job automatically when server starts.


Shekhar
 
Old 09-19-2010, 05:49 AM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
Which distro are you using?
 
Old 09-19-2010, 06:15 AM   #3
ge_shekhar
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Hi

I am using redhat 5.4.



Shekhar.
 
Old 09-19-2010, 06:19 AM   #4
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
Quote:
Originally Posted by ge_shekhar View Post
Hi

I am using redhat 5.4.



Shekhar.
Code:
/sbin/chkconfig --level 35 crond on
Make sure crond is on for runlevel 5 and 3

Code:
/sbin/chkconfig --list | grep crond

Last edited by vinaytp; 09-19-2010 at 06:21 AM.
 
Old 09-19-2010, 07:08 AM   #5
ge_shekhar
LQ Newbie
 
Registered: Sep 2010
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks my problem is resolved.
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron Job Problem chetansharma_softeng Linux - Newbie 6 01-14-2009 09:12 AM
Cron Job Problem imkornhulio Linux - Server 4 08-30-2008 10:50 PM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 09:16 AM
cron job problem graziano1968 Linux - Software 7 08-27-2005 01:41 AM
Cron Job Problem Corellon Linux - Software 4 08-12-2003 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:26 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration