Perfect.  Thanks!
-T

On Sat, Jan 12, 2013 at 8:12 AM, Sharon Lucas <luc...@us.ibm.com> wrote:

> Or, to stop only the STAXMon process that you started via a STAF PROCESS
> START request, then when you submit
>
> staf local process start command "java -jar
> c:\staf\services\stax\STAXMon.jar" sameconsole async
>
> you get the STAF handle of the process that was started returned.  Let's
> assume 18 is the STAF handle of the STAXMon process,
>
> Then add the following registration to the LIFECYCLE service:
>
>   STAF local LIFECYCLE REGISTER PHASE shutdown MACHINE local SERVICE
> process REQUEST "stop handle 18 once"
>
> Be sure to use the ONCE option so that after the LIFECYCLE service submits
> the request to stop the STAXMon process, it will remove this registration
> from the LIFECYCLE service (as the handle of the STAXMon process will
> probably be different the next time STAFProc is started and you start
> STAXMon via a PROCESS START request).
>
> --------------------------------------------------------------
> Sharon Lucas
> IBM Austin,   luc...@us.ibm.com
> (512) 286-7313 or Tieline 363-7313
>
> ----- Forwarded by Sharon Lucas/Austin/IBM on 01/12/2013 10:04 AM -----
>
> From:        Sharon Lucas/Austin/IBM@IBMUS
> To:        Tennis Smith <tennis_sm...@yahoo.com>,
> Cc:        staf-users@lists.sourceforge.net
> Date:        01/12/2013 09:47 AM
> Subject:        Re: [staf-users] Starting STAXMon Via Staf
> ------------------------------
>
>
>
> 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*<http://p.sf.net/sfu/learnmore_122912>
> _______________________________________________
> staf-users mailing list
> staf-users@lists.sourceforge.net*
> **https://lists.sourceforge.net/lists/listinfo/staf-users*<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
>



-- 
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. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to