On Mon, 21 Jul 2008 13:54:32 +0000, "Alex Bennee" <[EMAIL PROTECTED]> said: > However the runjava script prefers to set-up the configuration in > $opennms_home/etc/java.conf which is not where the init script looks. > I'm assuming the use of runjava in the postinst script was intended so > should I just make runjava debian aware?
No, the idea is that the opennms startup script and its dependencies, including runjava, have as little OS, platform, or distribution specificity as possible. This makes them less brittle and makes testing easier. Secondarily, and almost more critically, I wanted the opennms startup script to be as deterministic as possible--that is, acting the same way as possible regardless of external conditions when it was invoked, such as the JAVA_HOME that is set. "Back in the day," it was somewhat common for the startup script to choose different JVMs depending on the environment when you called it, and this made debugging a major PITA, let alone not being reliable. We need to have some way to let the user specify the version of Java to use and since there might be a number of JVMs installed in various locations. Depending on how the opennms startup script is invoked (did the user login as root, "su" to root, "sudo -s" to root, use "sudo /etc/init.d/opennms", etc.?) and various critical environment variables (e.g.: JAVA_HOME) might be set in various circumstances, when I cleaned up the startup script I made it use one and only one JVM--the one that is specified in OpenNMS' java.conf file, which is configured at install time by "runjava". Now, I have relatively little clue about how the Debian stuff is done, so I'll leave that for the Debian experts. :-) - djg ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-devel