× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Steve McKay wrote:

I'm writing a UPS monitor program. If I can hold the job queues in the UPS monitor program before I shutdown the system (because the UPS is dying), I don' have to change our start up program. The current startup program is used, more often than not, after a normal, intentional shutdown, so it does start subsystems needed for normal work. If I had to shutdown the system with the UPS monitor program, I might have serveral jobs in a job queue (many of our job queues are single threaded) that shouldn't run because Job1 was running at the time of shutdown and those jobs depend on files created by Job1. Therefore, I prefer to hold job queues rather than rework the startup program.

Steve:

Rob has given one potentially useful answer. When you ENDSBS *CNTRLD, the subsystem (or subsystems if *ALL) stops pulling jobs off of its jobqs. Existing jobs are allowed to continue until the *CNTRLD time limit is reached. At that time, the currently running jobs are signaled to end.

One problem has been that the subsystem must eventually actually be ended in order to restart it. (Anybody know if that's changed?) A UPS monitor would want to be sure that it was really going to end stuff rather than simply start it all back up in a minute or two because power suddenly was restored.

As for your actual question, no, I haven't seen any generic kind of HLDOUTQ command. Seems pretty easy to create one though.

When your system restarts, were you intending for jobqs still to be held?

Tom Liotta


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.