 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
Don Macary
Joined: 13 Aug 2003 Posts: 51
|
|
Restart 24x7 Service |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
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 |
|
 |
Don Macary
Joined: 13 Aug 2003 Posts: 51
|
|
Restart 24x7 Service |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7949
|
|
|
|
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,
 |
 |
// start new instance
Dim( pid, number )
Run( "24x7.exe", "", pid )
// kill current instance
JobProcessID( pid )
ProcessKill( pid ) |
|
|
Tue Jan 29, 2008 2:17 pm |
|
 |
|
|
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
|
|
|