|
From: Leif M. <le...@ta...> - 2004-12-07 23:49:06
|
Cory,
Please post Wrapper related requests to the Wrapper user mailing
list rather than sending
them to me directly.
Cory Riddell wrote:
>I am starting a server with:
> wrapper.exe -c CFG_FILE
>and I'm wondering if there is a similar way to stop the wrapped
>process? This is often running from a USB thumbdrive, so I don't want
>to install it as a service, but I need to be able to stop it from a
>batch file. I'm looking for something like:
> wrapper.exe -halt CFG_FILE
>
>Any suggestions?
>
>
When the Wrapper is launched as a console application. The
thinking was that it could
be easily stopped by pressing control C or something. There are not
any commands which
can be used to stop it as is possible with a service.
One way that you should be able to do this however is to make use of
the anchor file
feature added in 3.1.1. See the docs for wrapper.anchorfile.
http://wrapper.tanukisoftware.org/doc/english/prop-anchorfile.html
It will create an anchor file at the specified location when the
wrapper is launched.
The Wrapper will then shut itself down within a few seconds of that file
being deleted.
You could then write a simple batch file that deletes this anchor
file to get the effect
you are looking for.
Cheers,
Leif
|