On Debian and RedHat machines there is an
/etc/sysconfig/servicename file that is loaded before init scripts are run.
Is there an equivalent for Solaris?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
Solaris 10 and 11 use what's called the Service Management Facility (SMF). The equivalents to Linux
/etc/sysconfig/servicename would be found somewhere in the SMF's data.
An overview for Solaris 11 is available:
The Service Management Facility (SMF), first introduced in Oracle Solaris 10, is a feature of the operating system for managing system and application services, replacing the legacy
initscripting start-up mechanism common to prior releases of Oracle Solaris and other UNIX operating systems. SMF improves the availability of a system by ensuring that essential system and application services run continuously even in the event of hardware or software failures. SMF is one of the components of the wider Oracle Solaris Predictive Self Healing capability.
This article gives an introduction to SMF and demonstrates some simple examples of administering services on Oracle Solaris 11. More advanced administration topics will be covered in another article. To learn more about SMF, check out a variety of content at the SMF technology page on Oracle Technology Network.
If you're familiar with legacy
init scripts in the
/etc/rc?.d directories, this tutorial on how to migrate such legacy scripts into SMF-based services is probably a good place to learn where the parts of SMF are actually located:
In general, you can start by looking under