For Linux I know of two ways to do it.

For Red Hat there are these instructions; http://www.ejbsolutions.com/products/obox/community/ch20.html. These worked on Red Hat for me easily. However I think the wrapper method below is probably more recommended as it almost "out of the box" functionality with James. For Debian - I found the Red Hat instructions above didn't work straight away. So I used the wrapper" instructions on my Debian box, which turned out to be much simpler.

http://wrapper.tanukisoftware.org/doc/english/launch-nix-boot-debian.html on the phoenix.sh

I had to edit phoenix.sh to set the PHOENIX_HOME (somewhere near the top)

PHOENIX_HOME=/home/telrock/apps/james

and comment out the bit of phoenix.sh

  1. . "$PHOENIX_HOME"/bin/setenv.sh

then very briefly I did this:

#ln -s /home/telrock/apps/james/bin/phoenix.sh /home/telrock/apps/james/bin/james.sh #ln -s /home/telrock/apps/james/bin/james.sh /etc/init.d/james #update-rc.d james start 21 2 3 4 5 . stop 19 0 1 6 .    (the double symlink isn't required - it just makes more sense to me)

James/RunAsService (last edited 2009-09-20 23:33:17 by localhost)