Solved

CRON Spontaneously Shuts Itself Down

Posted on 2001-06-21
10
334 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
  • 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
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
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 20

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 20

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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Shell script errors 10 135
change HISTFILE for root user on AIX 3 81
Linux : can't create transaction lock error 1 67
Linux :how to provide sudo access to the user 13 97
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

831 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