Solved

CRON Spontaneously Shuts Itself Down

Posted on 2001-06-21
10
337 Views
Last Modified: 2010-04-21
System:
The system is an HP 715 running HPUX 10.20

Background:
From time to time and seemingly without reason, CRON will shut itself down. A look at the log file reveals that its last action was to attempt to execute a job in the crontab at an odd time. I've deactivated, then reactivated the crontab which seems to have helped at least for the time being. The problem with this solution is that I've done this before as a quick fix, but the problem resurfaces after a time.

Question:
What could I check to gain a little more visibility into what CRON is doing and when, and how can I prevent CRON from shutting itself down again? What could affect CRON to force it down?

0
Comment
Question by:pdouglas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +4
10 Comments
 

Expert Comment

by:cymru_lad
ID: 6217925
What do you mean by an 'odd time' ?  Also what cron entry was it trying to start ?

As a quick check, check that disk space is available in /var and whether any messages are being logged in /var/adm/syslog/syslog.log.  If possible please post the tail entry of the cron log file /var/adm/cron/log.

Mike
0
 
LVL 5

Expert Comment

by:ecw
ID: 6221679
Don't put crap in /var/spool/cron/crontab dir.  Only proper crontabs should be here, not backups or the usual dross people leave.  I've seen cron die quite often on HP boxes when people have left crap lying around.
0
 

Author Comment

by:pdouglas
ID: 6227633
More Info:

- The system is running CDE (Common Desktop Environment)
- Disk space in /var is at 61%
- Only 1 crontab exists in the /var/spool/cron/crontabs dir.
- The /var/adm/cron/log file does not contain anything unusual.
- The /var adm/syslog/syslog.log *does* contain some odd [or at least I believe they're odd] entries:

     DTSESSION: pmauthenticate status=9
     DTSESSION: pmauthenticate status=0
     inetd[585]: rpc.cmsd/udp: Died on signal 11



0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:jlms
ID: 6228156
Can't you put the crontab file here?
0
 

Author Comment

by:pdouglas
ID: 6228246
jlms,

I can't post the crontab file here since the system from which it comes is security sensative.
0
 
LVL 6

Expert Comment

by:Talmash
ID: 6230340
type :

crontab -l
to verify if the machine you use for cron job
is not occupied yet .

crontab -r : erase existing cron job from machine :

tip :

you can use those 2 commands while your cron-file .

Talmash
0
 

Expert Comment

by:cymru_lad
ID: 6230370
rpc.cmsd is the CDE Calender Manager Service.  I'd check out the latest patches for this and the cron process.  Patches are available for download from the HP website.

Mike
0
 
LVL 21

Expert Comment

by:tfewster
ID: 7556308
I don't know if you ever solved this problem, but reading this one and
http://www.experts-exchange.com/Operating_Systems/Unix/Q_20290519.html

reminded me of a problem I once saw.

A crontab file automagically reset itself once a day to a "standard" setup, destroying any changes I had made to it. The timestamp on /var/spool/cron/crontabs/username corresponded with the time of a cron job IN the crontab, so it was just a matter of tracing what the cron job did. (in fact, it started a ServiceGuard package, which executed other scripts, one of which was `crontab < /long/and/obscure/path/to/model/crontab` so it took a while to trace it :-)

If your system is doing something similar, it may be that the act of refreshing the crontab is causing cron to hang. Even so, patching cron is recommended.
0
 
LVL 21

Expert Comment

by:tfewster
ID: 7705190
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation for this question in the Cleanup topic area as follows:
- PAQ & refund points

Please leave any comments here within the next 7 days

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

tfewster (I don't work here, I'm just an Expert :-)
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 7757490
Finalized as proposed

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question