|
From: Leif M. <le...@ta...> - 2004-10-08 05:03:46
|
Daniel,
The Wrapper does not provide a direct way to start or stop an
external service directly
from within a Java application. It does however allow you to define
dependencies on other
services to make sure that they are started before your java application
is started. There are
some gotchas on system shutdown however, so be sure to read over the
following docs:
http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-dependency-n.html
One way for you to start and stop other services would be for you to
write a simple
method in your application to do so. You should be able to use the
Runtime.exec methods
to run a command directly like "net start foobar" or "net stop
foobar". Have not tried
this myself, but I don't see why it shouldn't work for you.
Cheers,
Leif
Daniel Bress wrote:
>Does the service wrapper provide a means to programmatically start/stop
>a service from within a java application?
>
>Thanks,
>Dan
>
>
|