#!/bin/bash # # james Startup script for the Apache James Server # # chkconfig: - 85 15 # description: Apache James Server # processname: java # pidfile: /var/run/james.pid # Source function library. . /etc/rc.d/init.d/functions export PHOENIX_HOME=/usr/local/james export JAVA_HOME=/usr/java/default export PHOENIX_JVM_OPTS="-server -Xmx128m -Xms64m -Xss128k" export PHOENIX_PID=/var/run/james.pid RETVAL=0 james=$PHOENIX_HOME/bin/phoenix.sh case "$1" in start|stop|restart|check) $james $@ RETVAL=$? ;; status) status -p $PHOENIX_PID james RETVAL=$? ;; *) echo $"Usage: $prog {start|stop|restart|status|check}" exit 1 esac exit $RETVAL |