|
From: Leif M. <le...@ta...> - 2005-06-23 22:19:17
|
Ross,
Currently the only non-standard way to start a service is by
executing the Wrapper
with the -t (Start) or -p (Stop) command line options. This does what
net start/stop
does but works much more reliably when the service takes more than a few
seconds
to either start or stop.
You can make use of some of the other features to stop your service
remotely.
The wrapper will shutdown if its anchor file is deleted:
See http://wrapper.tanukisoftware.org/doc/english/prop-anchorfile.html
You can also set up the Action server. See WrapperActionServer in the
javadocs for details. It lets you connect and control the Wrapper via
telnet.
This is a security problem if allowed remotely of course.
http://wrapper.tanukisoftware.org/doc/english/javadocs.html
If you have any ideas for how to implement what you are asking, please
post them and I'll try to work them into a future release.
Cheers,
Leif
Klingensmith, Ross F wrote:
> Is it possible to use the JavaServiceWrapper to start/stop the already
> installed services? I know you can do this through the netcsv command
> that comes with the service pack, but was wondering if it is within
> the capabilities of the wrapper. I would want to do this so that I
> could have another java program on a different machine be able to
> stop/start the services without using netcsv and the dos interface.
>
> Thanks in advance,
> Ross Klingensmith
>
>
|