Page 1 of 1

Restarting Jobs after DataStage re-start

Posted: Wed Aug 08, 2007 10:20 am
by joffijoy
Hi,

I have a requirement to re-start couple of Jobs when ever DataStage is recycled( stop and Start). Some of these jobs are infinite loop ( 1-99999) where in which jobs wait for a file to appear and process it and waits again. These are kept in a unix script file called '~/dsadm/Autostart/restart.sh' ( this file contain dsjob -run commands). I have a different set of jobs that are scheduled using cron ton run at specific time and days called '~/dsadm/Autostart/schedule.cron.file' .

1. Where should these 2 files be placed ( dsenv/.profile etc.) so that it get invoked after 'bin/uv -admin -start'?

2. What command should I use to invoke these (crontab <cron file name> etc. ) with an example

Thank you,
Joffi.

Posted: Wed Aug 08, 2007 3:23 pm
by ArndW
The `.profile' gets run by every DataStage user, so that would not be a good place. The logical location would be in your uv.rc file which is called as part of the startup - but is in a different location depending upon your OS - what Unix version are you running?

p.s. Welcome to DSXChange!

Posted: Wed Aug 08, 2007 3:35 pm
by joffijoy
I am running in "AIX Version 5.3"

Posted: Wed Aug 08, 2007 4:48 pm
by ArndW
I'm not certain as I'm currently not on an AIX system, but isn't the uv.rc installed in /etc/rc/rc.d directory?

Posted: Fri Aug 10, 2007 9:23 am
by joffijoy
ArndW wrote:I'm not certain as I'm currently not on an AIX system, but isn't the uv.rc installed in /etc/rc/rc.d directory? ...
What does uv.rc do? Thank you, Joffi.

Posted: Fri Aug 10, 2007 9:32 am
by joffijoy
ArndW wrote:I'm not certain as I'm currently not on an AIX system, but isn't the uv.rc installed in /etc/rc/rc.d directory? ...
ArndW, I have ds.rc in /etc. can I place my start script in ds.rc? at

....
exit 0
### REFER TO INSTALLATION NOTES ###
### PLACE USER DEFINED PROCESSES BELOW THIS MARKER ###
### DO NOT ALTER OR DELETE THIS BOTTOM MARKER. ###

Posted: Fri Aug 10, 2007 3:54 pm
by ray.wurlod
Yes. But beware that upgrading DataStage will overwrite ds.rc. You may be better to place your script in /etc/rc.d separately.