cd /usr/local/jakarta/james/bin
chmod 755 run.sh phoenix.sh
※run.shからphoenix.shが呼ばれるので、両方に実行権限を付与する。
これで起動できます。
# ./run.sh
Using PHOENIX_HOME: /usr/local/jakarta/james
Using PHOENIX_TMPDIR: /usr/local/jakarta/james/temp
Using JAVA_HOME: /usr/local/jdk1.6.0_06
Running Phoenix:
Phoenix 4.2
James Mail Server 2.3.1
Remote Manager Service started plain:4555
POP3 Service started plain:110
SMTP Service started plain:25
NNTP Service started plain:119
FetchMail Disabled
起動時に実行&デーモンで動作してほしいので・・・
vi /etc/init.d/james
#!/bin/bash
# james Start the James Mail server.
#
NAME=james
DAEMON1="/usr/local/jakarta/james/bin/phoenix.sh"
PIDFILE=/var/run/$NAME.pid
trap "" 1
export LANG=C
export JAVA_HOME=/usr/local/jdk1.6.0_06
export PHOENIX_HOME=/usr/local/jakarta/james
test -f $DAEMON || exit 0
case "$1" in
start)
$DAEMON1 $1
;;
stop)
$DAEMON1 $1
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop}"
exit 1
;;
esac