Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.
The "TomcatOnSolaris10" page has been changed by DanielBerg. http://wiki.apache.org/tomcat/TomcatOnSolaris10?action=diff&rev1=18&rev2=19 -------------------------------------------------- Create file in the following location. (The location does not really matter but the convention says so.) ''/var/svc/manifest/application/web/tomcat.xml'' + {{{ <?xml version="1.0"?> <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> <!-- - Copyright 2010 Avinor AS. All rights reserved. tomcat_svr.xml : Tomcat service manifest, Daniel Berg --> @@ -40, +40 @@ <single_instance /> - <exec_method + <exec_method - type='method' + type='method' name='start' exec='/usr/apache/tomcat55/bin/startup.sh' timeout_seconds='30' /> - <exec_method + <exec_method - type='method' + type='method' name='stop' exec='/usr/apache/tomcat55/bin/shutdown.sh' timeout_seconds='30' /> @@ -67, +67 @@ </service> </service_bundle> + }}} + To import this file run + # ''svccfg import /var/svc/manifest/application/web/tomcat.xml'' + + == Starting and stopping tomcat == + To start tomcat you can now run + + # svcadm enable tomcat + + To stop tomcat your would run + + # svcadm disable tomcat + + To se the current status: + + #- svcs -lp tomcat + + Output is something like the following + {{{ + + fmri svc:/application/web/tomcat:default + name Apache Tomcat 5.5.27 + enabled true + state online + next_state none + state_time Fri Feb 26 13:25:28 2010 + logfile /var/svc/log/application-web-tomcat:default.log + restarter svc:/system/svc/restarter:default + contract_id 183 + process 8303 /usr/jdk/jdk1.6.0_18/bin/sparcv9/java -Djava.util.logging.config.file=/var/apac }}} + You can see the log output from SMF in the filereferences as logfile in teh above output for any troubleshooting + + Running tomcat through SMF negates the need to run tomcat using nohup on Solaris. + --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
