You could use the STAF LIFECYCLE service to have STAF stop all processes
(that were started via STAF) when STAFProc is shut down if you don't want
any processes that were started by STAF (not just STAXMon) to still be
running when STAFProc is shut down.
To do this, you can add the following registration to the LIFECYCLE
service (note you only need to do this once as lifecycle registrations are
retained when STAFProc is shut down):
STAF local LIFECYCLE REGISTER PHASE shutdown MACHINE local SERVICE
process REQUEST "stop all confirm"
Then when a STAF local SHUTDOWN SHUTDOWN request is submitted, STAFProc
will submit a "STAF local PROCESS STOP ALL CONFIRM" request before
shutting down which will stop all processes that were started via STAF
assuming they can be stopped via a "STAF local PROCESS STOP" request.
It's fine to start the STAX Monitor Java application using a STAF PROCESS
START request.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Tennis Smith <tennis_sm...@yahoo.com>
To: staf-users@lists.sourceforge.net,
Date: 01/11/2013 08:33 PM
Subject: [staf-users] Starting STAXMon Via Staf
Hi Sharon, et al,
I use staf to start a copy of STAXMon:
staf local process start command "java -jar
c:\staf\services\stax\STAXMon.jar" sameconsole async
The problem is the the STAXMon stays up after I shutdown staf. Is there
an easy way to make sure staxmon goes away when staf does?
Finally, is there any reason why it would not be a good idea to start
staxmon this way?
--
Tks,
-Tennis
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users