Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to configure the Apache Tomcat 5.5 as a Solaris 10 service or as an alternative - any other way to run it on startup.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

Sun has 'evolved past' SysVinit to something called the 'Services Management Framework' (or SMF for short). There's an article on it here and a more dev-oriented article here that includes instruction on how to create your own service, which is, I think, what you want.

share|improve this answer
add comment

SMF, the Service Management Facility, uses XML files, so called 'manifests' to store information about services to start. Take an existing service, say ssh, and export its manifest to a file.

$ svccfg export ssh > ssh-manifest.xml

Analyze this file, take out what you don't need, update the service name and import it:

$ svccfg import < your-manifest.xml

Then set the service to run by default:

$ svcadm enable your-service

Speaking of Tomcat, you can get prepackaged Tomcat from OpenCSW. They have three versions of Tomcat packaged:

maciej@netra ~ $ pkg-get -a | grep tomcat
             tomcat4 4.1.37,REV=2008.11.30
             tomcat5 5.5.27,REV=2008.11.29
             tomcat6 6.0.18,REV=2008.11.29

Packages from OpenCSW configure SMF - they import the manifest and enable the service upon installation.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.