Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 02-02-2009, 01:47 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
cron.d running but not executing tasks - no simple solution.

I have a network of 8 identical servers, on each of these servers lies an identical file structure, and on each identical file structure lies an identical cron schedule.

The cron on these servers is very simple.

# crontab -e
*/1 * * * * sh /home/
*/15 * * * * root rdate -s && /sbin/hwclock --systohc

The first is a script to sync the content on each server with its closest partner, kind of like a domino effect. The second is a simple task to keep the clocks on each of these servers synced.

I can do either one of these tasks manually and they run perfectly fine.

Here is what I have already done to try to resolve this problem.
- SELinux is disabled
- No Permission Issues in .allow or .deny
- executed " restorecon -R /usr/sbin/crond /etc/cron* " and restarted cron
- No mail in root
- Restarted Cron
- Rebooted the Server

# nano /var/logs/cron

Feb 2 12:10:48 c05 crond[10972]: (CRON) STARTUP (V5.0)
Feb 2 12:11:01 c05 crond[11028]: (root) CMD (sh /home/
Feb 2 12:12:01 c05 crond[11238]: (root) CMD (sh /home/
Feb 2 12:13:01 c05 crond[11590]: (root) CMD (sh /home/
Feb 2 12:14:01 c05 crond[11814]: (root) CMD (sh /home/
Feb 2 12:15:01 c05 crond[12163]: (root) CMD (root rdate -s && /sbin/hwclock --systohc)
Feb 2 12:15:01 c05 crond[12167]: (root) CMD (sh /home/
Feb 2 12:16:01 c05 crond[12424]: (root) CMD (sh /home/
Feb 2 12:17:01 c05 crond[12643]: (root) CMD (sh /home/
Feb 2 12:18:01 c05 crond[12916]: (root) CMD (sh /home/
Feb 2 12:19:01 c05 crond[13168]: (root) CMD (sh /home/

According to logs these crons at least appear to be running just fine, however they are not. I am banging my head here trying to resolve this and it seems nothing is working.

The most common issues I have found are path related, but keep in mind that these exact same tasks run flawlessly on 7 other servers, all of which are identical.

Any help here would be greatly appreciated, OS is CentOS 5.0
Old 02-02-2009, 05:47 PM   #2
LQ Newbie
Registered: Feb 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Appears to be fixed after changing line 1 to
*/1 * * * * /bin/sh /home/ > /dev/null 2>&1


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
running kde apps as cron tasks jason.farnon Linux - Desktop 3 02-17-2007 11:39 AM
automatic login and executing couple of tasks kushalkoolwal Debian 8 03-11-2006 11:28 PM
Cron - doesn't seem to run scheduled tasks robintw Linux - General 11 11-25-2005 02:53 AM
All cron tasks fail Ateo Linux - Software 2 06-11-2005 02:34 PM
cron tasks MaverickApollo Linux - Software 1 02-02-2004 02:06 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:03 AM.

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