I use the following init script with Andrew Oliver's killjames utility.
--- Noel
killjames:
http://www.mail-archive.com/[email protected]/msg02307.html
init script:
#!/bin/sh
# Startup script for James Mail server
#
# chkconfig: 2345 95 92
# description: Run James Mail server
[ -f /opt/james/bin/run.sh ] || exit 0
start() {
echo -n "Starting James Mail Server: "
JAVA_HOME=/usr/local/java;export JAVA_HOME
PHOENIX_SECURE=false;export PHOENIX_SECURE
cd /opt/james/bin
nohup /opt/james/bin/run.sh &
RETVAL=$?
echo
}
stop() {
echo -n "Shutting down James Mail Server "
JAVA_HOME=/usr/local/java;export JAVA_HOME
/usr/local/java/bin/java -cp /root/admin-scripts/killjames.jar
de.mud.telnet.JamesKiller 'localhost' '<replace this with your james admin
password>'
echo
}
restart(){
stop
sleep 2
start
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo "Usage: james {start|stop|restart}"
exit 1
esac
exit 0
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>