I create an SMF manifest last week for a new service, and needed two environment variables to be set prior to the services’ start method being invoked. After poking around the svccfg manual page, I came across the setenv subcommand, which can be used to set an environment variable: $ svccfg -s tinydns setenv FOO […]
Archive for 'Solaris SMF'
If you are an avid Solaris 10 user, you may have noticed that it takes a bit of time for global and non-global zones to initialize after they are installed. One of the issues that slows down the initialization process is the initial manifest import, which is a series of steps that takes place to […]
I am in the process of migrating some old Solaris 8 web servers to Solaris 10, and plan to use SMF to stop and start Apache. Solaris ships with a relatively recent release of Apache (if only it included the LDAP authentication module and PHP), which is nicely integrated with SMF. If your a *NIX […]
I like several things about the Solaris service management facility (SMF), but one thing I don’t care for is SMF redirecting the output from startup scripts to logfiles in /etc/svc/volatile and /var/svc/log. Call me old fashion, but I like to view the boot progress on the console, and periodically use the console output to troubleshoot […]
SMF is one of the new features in Solaris 10, and provides the infrastructure needed to start and stop all of the processes that make up a useful system. SMF maintains a repository to store a variety of meta data to describe a service, and this information includes the state of a given service. The […]
I recently created SMF manifests for a few services I support. When I ran svccfg to import one of the manifests, it spit out the following error indicating that it couldn’t parse the document: $ svccfg import wls92.xml svccfg: couldn’t parse document Since the svccfg error message didn’t provide the number line that was causing […]