|
I don't have access to a Solaris server, and I don't have much experience with it, but I'll try to help. Besides accounting for JAVA_HOME in the script, do you make any other changes?
When you say it does not stay up reliably, does that mean it's crashing, or the process is ending abruptly?
And when you say it survives a logoff, does that mean you start it in an X terminal, and when you logout of the X session, it's still running? Or, are you doing anything to run it as a daemon process?
The server definitely doesn't require X, but it's possible that it's using an AWT class somewhere down the line. Try adding "-Djava.awt.headless=true" to the java command and see if that changes the screen flashing.
Let me know any other details you have. Thanks.
Sorry for the delay. Things got hectic and I never hit post for my reply.
Originally, made change in order to make script work. changed first line to invoke KSH.
(/bin/sh is bourne shell and it didn't like in "if [ -e blah]" syntax.
Seems like your stuff is happier on bash, so changed now to use bash
re: survives logoff. yes. no. in that order
added that.
Seems to be much happier now. It's been up since 1/31 without crashing.
Sorry, did all at once so don't know exactly which one worked.
-Dan
-Djava.awt.headless=true
"added that" == "added -Djava.awt.headless=true"
(which seems to be pasted at the end for safe-keeping)
Ok, it sounds like you've got things working. The agiletrack-server is normally launched using the Java Service Wrapper. There is a Solaris binary for it, so you might be interested in trying it as well.
http://wrapper.tanukisoftware.org/doc/english/launch-nix-boot-solaris.html
Let me know if you have other problems.