> -----Original Message----- > From: Adam Feuer [mailto:ad...@pobox.com] > Sent: Monday, 22 June 2009 03:44 > To: A good place to start for users or folks new to Mifos. > Subject: Re: [Mifos-users] Mifos Configuration Locations > > Graeme, > > We intended the Java System property to be used only in our test > system. You can use it for production, but it might be easier to set > the MIFOS_CONF environment variable. This could easily be done in the > startup script: > > export MIFOS_CONF="/etc/mifos/local.properties"
Thanks Adam Sorry about the slow response - I've been a bit distracted... That doesn't work as expected. The environment is Debian lenny. /etc/init.d/tomcat6 invokes /usr/bin/jsvc ($DAEMON), as below: $DAEMON -user "$TOMCAT6_USER" -cp "$JSVC_CLASSPATH" \ -outfile SYSLOG -errfile SYSLOG \ -pidfile "$CATALINA_PID" $JAVA_OPTS "$BOOTSTRAP_CLASS" $MIFOS_CONF has the expected value when jsvc is called (I renamed the executable and wrapped it in a script with the original name to dump the environment so I could check), but this doesn't appear to be getting through to Mifos. The root cause appears to be that jsvc is launched in the context of $TOMCAT6_USER, which has the value "tomcat6", and user tomcat6 is set up like this: tomcat6:x:112:114::/usr/share/tomcat6:/usr/sbin/nologin This means that Tomcat can't run a shell. Good for security, but it doesn't help in this case! I don't have an Ubuntu server to test on. Does Ubuntu have a different way of launching Tomcat to Debian that preserves the environment? Regards Graeme ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Mifos-users mailing list Mifos-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mifos-users