LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-13-2007, 06:09 AM   #1
ericcarlson
Member
 
Registered: Jan 2002
Posts: 162

Rep: Reputation: 30
Why do I have to restart cron each boot?


Suddenly I find I have to issue "service crond restart" each boot. I can't think what kocked this out. The message says it wasn't running, then after the command it is. All is well from then on. Surely cron is pretty basic to the whole system - I don't have to make a symlink in /etc/rc5.d/ do I? System is Fed 6. Thanks.
 
Old 02-13-2007, 06:22 AM   #2
wjevans_7d1@yahoo.co
Member
 
Registered: Jun 2006
Location: Mariposa
Distribution: Slackware 9.1
Posts: 938

Rep: Reputation: 30
crond is "basic to the system" only in that most systems run it. It's a program. Like any other daemon, if you want it, you have to start it each time you boot: just like inetd, or syslogd.
 
Old 02-13-2007, 06:35 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Quote:
Originally Posted by ericcarlson
I don't have to make a symlink in /etc/rc5.d/ do I? System is Fed 6. Thanks.
Probably not. First you have to check if the crond start script has the correct permissions, e.g.
Code:
-rwxr-xr-x 1 root root 1904 Sep  5 14:14 /etc/init.d/crond
Second, if you are under GNOME, you can open System -> Administration -> Services and check if the box near the crond entry (in the left menu) is checked or not. Checking it tell to the system to start the service at boot up.
Third you can check the correct link under /etc/rc5.d, e.g.
Code:
lrwxrwxrwx 1 root root 15 Oct 31 10:04 S90crond -> ../init.d/crond
 
Old 02-13-2007, 07:24 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,439
Blog Entries: 1

Rep: Reputation: 66
In a LSB compliant system, like FC6, the command "chkconfig" controls what services runs at what levels. For instance,
Code:
chkconfig --list crond
will tell you in what levels crond is set to run at boot time. Also,

Code:
chkconfig crond on
(or)
chkconfig crond off
will enable(disable) crond to run, at boot time, in the levels pre-defined in the header of crond script.
 
Old 02-14-2007, 06:20 AM   #5
ericcarlson
Member
 
Registered: Jan 2002
Posts: 162

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by marozsas
In a LSB compliant system, like FC6, the command "chkconfig" controls what services runs at what levels. For instance,
Code:
chkconfig --list crond
will tell you in what levels crond is set to run at boot time. Also,

Code:
chkconfig crond on
(or)
chkconfig crond off
will enable(disable) crond to run, at boot time, in the levels pre-defined in the header of crond script.
Wow that was it! The first command didn't show crond in the list at all, and after chkconfig crond on it appeared! Thanks, how the heck that happened I've no idea. Thanks to other replies too.
 
  


Reply

Tags
crond


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 not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U SUSE / openSUSE 11 01-04-2007 02:57 AM
Can only connect to internet if 1st boot into XP then restart & boot into Suse 10.1 axarq Linux - Networking 6 08-03-2006 09:33 PM
Crond Dead But Subsys Locked, cannot restart cron services jmm8142 Linux - Software 4 05-23-2005 01:41 PM
Cron job to check/restart network connection? mac_phil Linux - Networking 6 09-01-2004 02:51 PM
cron job to restart process if dead gborrageiro Linux - General 3 09-25-2002 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:12 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