Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
4.1
-
None
-
None
Description
Expand the phoenix scripts on platforms where it is supported so that you can start phoenix in background and also stop when it is running in background via something like;
$PHOENIX_HOME/bin/start.sh
$PHOENIX_HOME/bin/stop.sh
Possible ways of saying shutdown include;
1. storing the process ID somewhere and sending kill message to process
2. communicating via JMX to say shutdown
3. communicating via tcp to say shutdown
4. enhancing wrapper project (http://wrapper.sourceforge.net/) so that there is a java monitor process that will monitor the "real" phoenix instance. Then we could require wrapper as part of all phoenix installs but not require that native daemons be present
(4) is the best option.
(3) requires that we pass some sort of "key" or magic cookie between server and client process so that the program that sends shutdown message has to have access to file in phoenix directory (Thus offering a vague form of security)