This section will provide information for systems administrators in deploying Ximix on unix environments that support the SysV init daemon.
The following variables require attention:
#!/bin/bash # # chkconfig: 35 90 12 # description: Ximix Node # # Define the node. # NODE=node1 # # # The user to run ximix under. if [[ "x$XIMIX_USER" = "x" ]]; then XIMIX_USER=ximix fi # # Where to direct stdout and stderr # if [[ "x$XIMIX_OUT" = "x" ]]; then XIMIX_OUT="/dev/null" fi # export JAVA_HOME=/path/to/java # export XIMIX_HOME=/path/to/ximix if [[ "x$JAVA_HOME" = "x" ]]; then echo "JAVA_HOME is not defined." exit -1 fi if [[ "x$XIMIX_HOME" = "x" ]]; then echo "XIMIX_HOME is not defined." exit -1 fi start() { echo "Starting Ximix Node $NODE" su $XIMIX_USER -c "$XIMIX_HOME/bin/start.sh $NODE 2>&1" > $XIMIX_OUT } stop() { su $XIMIX_USER -c "$XIMIX_HOME/bin/stop.sh $NODE" } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac exit 0
The following variables require attention:
#!/bin/bash # # chkconfig: 35 90 12 # description: Ximix Console # # # The user to run ximix under. if [[ "x$XIMIX_CONSOLE_USER" = "x" ]]; then XIMIX_CONSOLE_USER=ximix fi # # Where to direct stdout and stderr # if [[ "x$XIMIX_CONSOLE_OUT" = "x" ]]; then XIMIX_CONSOLE_OUT="/dev/null" fi # export JAVA_HOME= # export XIMIX_CONSOLE_HOME= if [[ "x$JAVA_HOME" = "x" ]]; then echo "JAVA_HOME is not defined." exit -1 fi if [[ "x$XIMIX_CONSOLE_HOME" = "x" ]]; then echo "XIMIX_CONSOLE_HOME is not defined." exit -1 fi start() { echo "Starting Ximix Console." su $XIMIX_CONSOLE_USER -c "$XIMIX_CONSOLE_HOME/bin/start.sh $NODE 2>&1" > $XIMIX_CONSOLE_OUT } stop() { echo "Stopping Ximix Console" su $XIMIX_CONSOLE_USER -c "$XIMIX_CONSOLE_HOME/bin/stop.sh $NODE" } case "$1" in start) start ;; stop) stop ;; restart) stop start ;; *) echo $"Usage: $0 {start|stop|restart}" exit 1 esac exit 0
The Ximix node user will require write access to the its installation directory.
The Ximix console user does not require write permissions to its file system.