I don't think we'll be adding this capability to STAF. Shutting down STAF
is similar to shutting down an operating system...if you submit a shutdown
request to the OS, it is going to shut down, and therre's no way to
"cancel" it.
However, there is a way you could have an additional confirmation during
the STAF shutdown. In STAF V3.2.4 we added a new "LifeCycle" service
(http://staf.sourceforge.net/current/STAFUG.htm#HDRLIFECYCLESRV) that
allows you to register STAF service requests that you want to have
executed when STAFProc starts or shuts down. You could register a request
that would act as the confirmation of the shutdown. Here is a simplified
example:
$ STAF local LIFECYCLE REGISTER PHASE shutdown MACHINE local SERVICE
process REQUEST "START SHELL COMMAND notepad WAIT"
In this simplified example we are just submitting a PROCESS START request
to start notepad, and specifying the WAIT option so the request is
synchronous (it will not complete until the notepad is closed). So, when
you submit a "STAF local SHUTDOWN SHUTDOWN" request, the LifeCycle
registrations with a phase of "shutdown" will be executed before STAFProc
actually shuts down. So, the notepad application would be opened, and all
of the other STAF service requests would still continue indefinitely.
Then, when you close the notepad application, the shutdown would continue
as usual.
So, obviously you would not start "notepad" in your scenario, but you
could write a Java app, for example, that would present a UI dialog on the
system, confirming if the user really wanted to shutdown STAF, and if the
user indicated that they wanted to continue shutting down STAF, then the
Java app would exit and the STAF shutdown would continue.
David Bender
STAF/STAX Development
(512-286-5315)
IBM Austin Bldg. 903-5B002
Internet: bda...@us.ibm.com
Mohammad Jamal <md.shahid.ja...@gmail.com>
06/05/2009 07:45 AM
To
David Bender/Austin/i...@ibmus
cc
staf-users@lists.sourceforge.net
Subject
Re: [staf-users] How to prevent shutdown of STAF?
On Wed, Jun 3, 2009 at 5:54 PM, David Bender <bda...@us.ibm.com> wrote:
No, Can you explain why you would need this capability?
As STAF Framework providing the functionalities for running the processes
from one system to another system (if on both the system, STAF Framework
should be running state).
We are working on a tool for performing regression testing of compilers.
This tool uses the services of STAF.
With the help of tool, a testing is started and monitor from a machine
(Test Server) on several other remote machines.
In this process, a STAX Job is created from Test Server and executed on
remote machines. Remote machine user is not involved in this testing
process any ways.
So while executing the STAX Job on remote machine, if STAF framework on
remote machine is closed accidentally, then testing process is also
terminated, and again it is required to start the testing process from the
beginning.
If STAF framework provides some functionality of displaying a warning
message while terminating the STAF framework, then the accidental
termination of STAF framework can be avoided.
David Bender
STAF/STAX Development
(512-286-5315)
IBM Austin Bldg. 903-5B002
Internet: bda...@us.ibm.com
Mohammad Jamal <md.shahid.ja...@gmail.com>
06/03/2009 03:37 AM
To
David Bender/Austin/i...@ibmus
cc
Subject
Re: [staf-users] How to prevent shutdown of STAF?
On Tue, Jun 2, 2009 at 7:07 PM, David Bender <bda...@us.ibm.com> wrote:
No. Once the SHUTDOWN SHUTDOWN request is submitted, STAF will shut down.
Thanks.
Would this feature be included in comming version of STAF?
David Bender
STAF/STAX Development
(512-286-5315)
IBM Austin Bldg. 903-5B002
Internet: bda...@us.ibm.com
Mohammad Jamal <md.shahid.ja...@gmail.com>
06/01/2009 11:53 PM
To
STAF User <staf-users@lists.sourceforge.net>
cc
Subject
[staf-users] How to prevent shutdown of STAF?
Greetings
After executing the command 'STAF LOCAL SHUTDOWN SHUTDOWN', Is there any
way to prevent the process of shutting down of STAF framework?
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to:
http://p.sf.net/sfu/opensolaris-get_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users