Dear Eric,

My thanks to you and everyone in the group - this script solved my problem..

I have one more question - how to obtain the keystore for enabling ssl? I tried 
keytool but it apparently doesn't know how to do SunX509:

:> keytool -genkey -v -keyalg SunX509 -keypass hellopasskey -storepass 
hellostorepass -keystore ./james.keystore
keytool error: java.lang.Exception: Cannot derive signature algorithm
java.lang.Exception: Cannot derive signature algorithm
        at sun.security.tools.KeyTool.doGenKeyPair(KeyTool.java:1140)
        at sun.security.tools.KeyTool.doCommands(KeyTool.java:786)
        at sun.security.tools.KeyTool.run(KeyTool.java:172)
        at sun.security.tools.KeyTool.main(KeyTool.java:166)




Sunil
"Anger is more useful than despair" - Terminator III

“To get what we've never had, we must do what we've never done.” ~ Anonymous


--- On Sun, 1/11/09, Eric MacAdie <[email protected]> wrote:

> From: Eric MacAdie <[email protected]>
> Subject: Re: Config under Debian Linux 2.6
> To: "James Users List" <[email protected]>
> Date: Sunday, January 11, 2009, 12:12 PM
> Here is a script that I use. Copy it to /etc/init.d/james.sh
> 
> 
> #!/bin/sh
> # update-rc.d james.sh start 50 0 1 2 3 4 5 6 .
> # update-rc.d james.sh stop 50 0 1 2 3 4 5 6 .
> # description: Apache James Server
> 
> export JAVA_HOME=/path/to/java
> export
> PATH=$JAVA_HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
> CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar
> 
> 
> 
> case "$1" in
> 'start')
> /path/to/james/james-2.3.1/bin/phoenix.sh start
> ;;
> 'stop')
> /path/to/james/james-2.3.1/bin/phoenix.sh stop
> ;;
> 'restart')
> /path/to/james/james-2.3.1/bin/phoenix.sh restart
> ;;
> 
> *)
> echo "Usage: $0 { start | stop | restart }"
> ;;
> esac
> exit 0
> 
> -------------
> Adjust the paths to whatever is on your machine. You can
> copy and paste the two "update-rc.d" lines and run
> them as root to get the script to run James automatically
> upon startup.
> 
> Eric MacAdie
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to