Showing posts with label svccfg. Show all posts
Showing posts with label svccfg. Show all posts

Thursday, August 5, 2010

adding an application to smf in solaris 10

create the method file in /lib/svc/method, usually easiest to find something close to the app you're installing and modify the file. For example apache2 comes installed, but I put the latest version in /usr/local/apache2 so I just use the files that are already there with path modifications.

Then you need to add a manifest. Those are stored in /var/svc/manifest and usually if you're adding your own you would put it in the /var/svc/manifest/site directory (or so I've heard). Again the best way is to get one that is close and modify it or use it as a template. I've found that the one installed with the system works just fine with an upgraded version of apache in /usr/local/apache2 but best to check to be sure.

Then you import it:
svccfg -v import /var/svc/manifest/site/http-apache2.xml

Then the normal SMF controls should work for it.