1834934 Members
2703 Online
110071 Solutions
New Discussion

Re: Crontab error

 
juno2
Super Advisor

Crontab error

After I 'hv reboot the system , then the cronjob can't be automatically run (include root and other users) , I checked the cront.allow is normal , can suggest what is possible reason of the error ? thx.
7 REPLIES 7
Mark Grant
Honored Contributor

Re: Crontab error

This may be a bit obvious but are you sure "cron" is running. Also, check /etc/rc.log to see if there are any errors and check roots mail to see if there are any errors from cron trying to run.
Never preceed any demonstration with anything more predictive than "watch this"
Robert-Jan Goossens
Honored Contributor

Re: Crontab error

Juno,

Is the cron deamon running ?

Robert-Jan.
twang
Honored Contributor

Re: Crontab error

What shows in /var/adm/cron/log?
V.Tamilvanan
Honored Contributor

Re: Crontab error

Hi,

Check the startup config file /etc/rc.config.d/cron for CRON=1 . If it is 0 modify to 1 and start the cron daemon manually by executing
#/sbin/init.d/cron start
Rajesh SB
Esteemed Contributor

Re: Crontab error

Hi,

You can look for cron service started or not and for any error reported the /etc/rc.log file while system startup.

You can check runlevel startup flag is set properly in /etc/rc.config.d/cron.

Cheers,
Rajesh
Camel_1
Valued Contributor

Re: Crontab error

did you convert the system to "trust" mode, there has a procedure to make cron work after turned to "trust" mode.
Steven E. Protter
Exalted Contributor

Re: Crontab error

ps -ef | grep cron

If nothing is running follow previously posted instructions to set the cron daemon to run at startup.

then

/sbin/init.d/cron start

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com