SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Restart 24x7 Service

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Restart 24x7 Service
Author Message
Don Macary



Joined: 13 Aug 2003
Posts: 51

Post Restart 24x7 Service Reply with quote
I want to automatically restart the 24x7 service each morning. There may be jobs that are running
when the restart occurs.

Can you tell me what impact that will have on jobs that are running?

Will they be terminated by the scheduler as it shuts down?

How about if the jobs are detached?
Tue Jan 29, 2008 12:31 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7949

Post Reply with quote
It will try to kill running jobs. This usually works well but there is no guarantee that every process can be aborted. Theoretically some processes just cannot be killed if they are waiting for a resource availability from the core operation system or hung on a network connection.
Tue Jan 29, 2008 1:21 pm View user's profile Send private message
Don Macary



Joined: 13 Aug 2003
Posts: 51

Post Restart 24x7 Service Reply with quote
actually, I was hoping that it didn't kill the jobs and wondering whether detached
would keep the running jobs running...
Tue Jan 29, 2008 1:57 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7949

Post Reply with quote
Nope, this won't help. But there is a solution. Create a JAL job script to abort and restart the scheduler programmatically so that it has no chance to kill running jobs
The job can use JobProcessID and ProcessKill to kill the scheduler process, for example,

Code:
// start new instance
Dim( pid, number )
Run( "24x7.exe", "", pid )

// kill current instance
JobProcessID( pid )
ProcessKill( pid )

Tue Jan 29, 2008 2:17 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.