avalon-phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David W." <davew...@optonline.net>
Subject Re: Would a shutdown script be useful?
Date Sat, 07 Sep 2002 12:58:25 GMT
You can already tell it to shutdown through JMX (using the HttpAdaptor or
RmiAdaptor).  (Access to the server through JMX should probably be protected
in some way if you're thinking about security).  Shutting Phoenix down
through the JMX RmiAdaptor would probably be a bit of a cleaner way to do
it. A platform independant one as well.

David Weitzman

----- Original Message -----
From: "Peter Donald" <peter@apache.org>
To: "Avalon-Phoenix Developers List" <avalon-phoenix-dev@jakarta.apache.org>
Sent: Saturday, September 07, 2002 7:48 AM
Subject: Re: Would a shutdown script be useful?

> On Sat, 7 Sep 2002 13:30, David W. wrote:
> > Currently you can tell Phoenix to shutdown by sending an interrupt
> > in whatever way your operating system supports.  A shutdown script isn't
> > really necessary.  Some users might find it more comfortable, though.
> > After all, that 'JVM has been abnormally terminated' message doesn't
> > leave a warm fuzzy feeling -- but that's another topic.
> >
> > And once you've implemented a shutdown script, you might as well stick
on a
> > restart script.
> >
> > Do -shutdown and -restart belong as switches in CLIMain?
> For unix there is already such functionality (try phoenix.sh
> [start|stop|restart|status]) and for windows you need to use the wrapper
> toolkit (wrapper.sourceforge.net) to get the equivelent behaviour.
> Another way we have discussed is something like the following. We keep a
> "cookie" file in somewhere like $PHOENIX_HOME/conf/cookie - this would be
> used to do a simple digest or symetric encryption of a message that can be
> sent to the server. So we could tell the server to shut itself down by
> launching a client and sending this message.
> The resuslt is that any one with permission to read the file
> $PHOENIX_HOME/conf/cookie has permission to shutdown the server. It is
> reasonable safe without being too painful to work with.
> --
> Cheers,
> Peter Donald
> -----------------------------------------------
> "Only two things are infinite, the universe and
> human stupidity, and I'm not sure about the
> former." -Albert Einstein
> -----------------------------------------------
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:   <mailto:avalon-phoenix-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-phoenix-dev-help@jakarta.apache.org>

View raw message