1832759 Members
2986 Online
110045 Solutions
New Discussion

after ignite,cron error

 
SOLVED
Go to solution
Mustafa Gulercan
Respected Contributor

after ignite,cron error

hi;
i cloned HP 11.11 from ignite backup.
At new system some users deleted.And cron.allow file reconfigured.But i still taking cron error from deleted user.Here is an example;
i take this error log from cron;
> CMD: /tts/ttstest/product/1.0.0/script/menu/run_crontab.sh /tts/ttstest/product/1.0.0/script/menu/statspack_cron.sh
> ttstest 15013 c Thu Jun 29 12:30:00 EETDST 2006
> CMD: /tts/tts/product/1.0.0/script/menu/run_crontab.sh /tts/tts/product/1.0.0/script/menu/statspack_cron.sh
> tts 15014 c Thu Jun 29 12:30:00 EETDST 2006
< tts 15014 c Thu Jun 29 12:30:00 EETDST 2006 rc=1
< ttstest 15013 c Thu Jun 29 12:30:00 EETDST 2006 rc=1

There is no /tts directory at new system.
And there are no tts and ttstset users.

at cron.allow file and also at /var/spool/cron/crontabs tts and ttstest don't exist.

How can system start a cron if there is no cron job?


any opinion?

regards;
mustafa

11 REPLIES 11
Robert-Jan Goossens
Honored Contributor

Re: after ignite,cron error

Hi Mustafa,

There is a user with these cron scripts on this server. Try this.

# cd /var/spool/cron
# find . -type f | xargs grep statspack

Regards,
Robert-Jan
Mustafa Gulercan
Respected Contributor

Re: after ignite,cron error

i did.here is output.

# find . -type f | xargs grep statspack
./oracle:0,30 08,09,10,11,12,13,14,15,16,17,18 * * 1-5 /home/oracle/statspack/do_statspack >> /dev/null

and here is the /home/oracle/statspack/do_statspack file;

sqlplus perfstat/perfstat @/home/oracle/statspack/take_snap.sql

Mustafa Gulercan
Respected Contributor

Re: after ignite,cron error

any opnion?
john korterman
Honored Contributor

Re: after ignite,cron error

Hi,

try executing
# crontab -l ttstest

and see if anything appears for this user...


regards,
John K.
it would be nice if you always got a second chance
Mustafa Gulercan
Respected Contributor

Re: after ignite,cron error

i've actually deleted both user.

# crontab -l ttstest
crontab: Not a valid user

Robert-Jan Goossens
Honored Contributor
Solution

Re: after ignite,cron error

Mustafa,

How did you remove the cronjobs of tts and ttstest ? with rm /var/spool/cron/crontabs/tts ?

Try restarting the cron daemon.

# /sbin/init.d/cron stop
# /sbin/init.d/cron start

Robert-Jan
Mustafa Gulercan
Respected Contributor

Re: after ignite,cron error

yes i did #rm /var/spool/cron/crontabs/tts
and reconfig cron.allow file.
now i will restart the cron deamon
Mustafa Gulercan
Respected Contributor

Re: after ignite,cron error

after restarting the deamon i took this warning;
Logfile /var/adm/cron/log was removed and re-created but 'close' option is off.
Reopening the file.

is it normal?
spex
Honored Contributor

Re: after ignite,cron error

Mustafa,

That warning can be ignored. cron simply recreated /var/adm/cron/log with "close after reading" set to false.

PCS
john korterman
Honored Contributor

Re: after ignite,cron error

Hi again Mustafa,

any chance they could have been at jobs?


regards,
John K.
it would be nice if you always got a second chance
Mustafa Gulercan
Respected Contributor

Re: after ignite,cron error

i think the problem solved after restarting the deamon. i will observe the logs until tomorrow.

thanks all


regards;
mustafa