====== Deploying Ximix ====== This section will provide information for systems administrators in deploying Ximix on unix environments that support the SysV init daemon. ===== Ximix Node ===== The following variables require attention: - NODE - The node name - XIMIX_USER - The userid to run ximix under. - XIMIX_OUT - Redirection point for standard out and standard error. - XIMIX_HOME - Ximix home directory, where ximix is installed. - JAVA_HOME - Location of JVM. #!/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 ===== Ximix Console ===== The following variables require attention: - XIMIX_CONSOLE_USER - The user to run the console under. - XIMIX_CONSOLE_OUT - Redirection point for standard out and standard error. - XIMIX_CONSOLE_HOME - Installation directory of console. #!/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 ===== Setting of User ===== 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.