Beruflich Dokumente
Kultur Dokumente
SMF
Old method
mv /etc/rc2.d/S75cron /etc/rc2.d/x.S75cron
SMF method
svcadm disable system/cron:default
Solaris services
Service: persistent program that handles system/user requests Services are not associated with any user login SMF Service is any long-lived SW object with:
- a well defined state - start and stop capability - relationship to other services (restart relationship) The building block of SMF is the service instance Every SMF service can have multiple instances
Restart relationship
Relationship between a service, its processes, and another service that is responsible for restarting the service It permits re-starters to identify cause of a service process failure
Legacy services
Not all system services have been converted to use SMF
SMF re-starter
svc.startd is the default SMF re-starter
Manifest files are stored in /var/svc/manifest SMF uses manifests to: - manage services - to determine root causes of service failures
Manifest files are the source of configurations in the repository Configurations then configure all service objects instances
SMF milestones
Milestones supplants the traditional concept of run levels Run level: set of services necessary for one or for multiple users to log in the machine console (run level S, 2&3) These system states are represented in SMF as milestones Milestone: stable service representing a group of other services "svcs -d" lists services required for a milestone to be reached svcadm is used for setting the system's default run level (based on the FMRI of a valid milestone)
SMF Commands
svcadm: enable, disable and restart services svcadm allows to stop a service without its processes restarted
SMF in OSS-RC
Start order: Standard Solaris services 3PP services TBS SSR SSR Process Supervisor will then start all OSS MC The start order of the MCs is defined in DMDB (Prior to R5.2. it was in the PASDB, now removed)