|
From: Sal I. <sal...@vo...> - 2004-04-08 17:33:52
|
Hello Leif,
I would like to issue a "wrapper -check-service" and get back a
status/status-code such as
not-installed
installed
started
not-started
disabled
... anything you want.
optionally this could come back as a bitfield, similar to the "chmod 777",
so a "wrapper -check-service" would print-out a 2-character field where the
first character is the installed status and the second is the started
status, so "IS" means installed and started, "NN" means not installed and
not started.
this could also come back as as an "int" return code from the wrapper main
() call so then this could be called from java.
i'd like to have this functionality so i can query it from the command line
without going to the services control panel, and also because i'd like to
create an ant wrapper task that can be used these ways:
<java-service-wrapper dir="bin" conf="../wrapper.conf" action="console" />
<java-service-wrapper dir="bin" conf="../wrapper.conf" action="start" />
<java-service-wrapper dir="bin" conf="../wrapper.conf" action="stop" />
<java-service-wrapper dir="bin" conf="../wrapper.conf" action="install" />
<java-service-wrapper dir="bin" conf="../wrapper.conf" action="remove" />
<java-service-wrapper dir="bin" conf="../wrapper.conf"
action="check-installed" property="WRAPPER_INSTALLED" />
<java-service-wrapper dir="bin" conf="../wrapper.conf"
action="check-started" property="WRAPPER_STARTED" />
if you want to include the ant library in the wrapper distribution, i can
create the source under your package such as
"org.tanukisoftware.wrapper.ant" and hand it over to you.
sal.
-----Original Message-----
From: wra...@li...
[mailto:wra...@li...]On Behalf Of Leif
Mortenson
Sent: Thursday, April 08, 2004 8:29 AM
To: wra...@li...
Subject: Re: [Wrapper-user] Wrapper directories
Andeas,
I have finally gotten a wrapper.working.dir property implemented in
the Wrapper
and believe I have all the vagaries worked out or at least understood.
The changes
are all checked into CVS along with the documentation for the new
property. (Which
is quite involved)
The gist of it is that the Wrapper will work as it always has on
startup and until
after the wrapper.conf file has been completely loaded and parsed. The
Wrapper
will then change to the new working directory before launching the first
JVM. This
means that all paths in the wrapper.conf file will be relative to the
location specified
in the wrapper.working.dir.
Users who do not make use of this new property will see no change in
the way
the Wrapper works.
This was the last feature that I had wanted to get into 3.1.0, so
once it has been
fully tested a release will be forthcoming soon. There are still a few
more things that
have to be tied up for the new documentation / web site.
Cheers,
Leif
Andreas Wendt wrote:
>Leif,
>
>attached you will find the diff (I named my modified version 3.0.6).
>
>Cheers,
>Andreas
>
>
>
>>-----Original Message-----
>>From: Leif Mortenson [mailto:le...@ta...]
>>Sent: Monday, March 15, 2004 3:56 PM
>>To: wra...@li...
>>Subject: Re: [Wrapper-user] Wrapper directories
>>
>>
>>Andreas,
>> Go ahead and send me the diff and I'll take a look at it.
>>
>>Thanks as always,
>>Leif
>>
>>Andreas Wendt wrote:
>>
>>
>>
<snip>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
|