You should use the 'setenv' subcommand of svccfg(1M). eg.
svccfg -s <service> setenv CATALINA_OPTS "Xms256m -Xmx256m" svccfg -s <service> setenv JAVA_OPTS -Dcom.sun.management.jmxremote svccfg -s <service> setenv JAVA_HOME /usr/java/jre -- Renaud -------- Original Message -------- Subject: [smf-discuss] Passing multiple startup parameters via svccfg From: Chris Jackson <cjack...@data-integrity.net> To: smf-discuss at opensolaris.org Date: Tue Feb 20 2007 01:25:43 GMT+0100 (CET) > I'm trying to configure SMF to manage my Tomcat server and running into a > problem with specifiying multiple startup options. I need to pass Tomcat the > following startup parameters: > > CATALINA_OPTS=-Xms256m -Xmx256m > JAVA_OPTS=-Dcom.sun.management.jmxremote > > I've tried using svccfg and specifying this as an environment var as such: > > start/environment astring "CATALINA_OPTS=-Xms256m -Xmx256m" > "JAVA_OPTS=-Dcom.sun.management.jmxremote" "JAVA_HOME=/usr/java/jre" > > This doesn't seem to work at all. I've gotten around it by specifying these > parameters in a startup script that SMF uses for its method. I'd really like > to have all these parameters done directly in SMF, not in the startup script > itself as it makes troubleshooting and portability an issue. Any pointers as > to what I'm doing incorrectly? > > > This message posted from opensolaris.org > _______________________________________________ > smf-discuss mailing list > smf-discuss at opensolaris.org