Specifications

Red Hat Enterprise Linux to Oracle Solaris Porting Guide
80
#/sbin/chkconfig --list crond
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# /sbin/chkconfig crond --level 234 off
# /sbin/chkconfig --list crond
crond 0:off 1:off 2:off 3:off 4:off 5:on 6:off
Now you can go to directories /etc/rc2.d/, /etc/rc3.d/, and /etc/rc4.d/ to confirm
that the link to the crond startup script really got deleted.
Let’s look at a typical service startup script to understand how services are controlled:
##sample crond startup script##
#! /bin/sh
case "$1" in
start)
rh_status_q && exit 0
$1
;;
stop)
rh_status_q || exit 0
$1
;;
restart)
$1
;;
reload)
rh_status_q || exit 7
$1
#### /crond ####
Now, based on the user inputs, the appropriate part of the script gets executed.
Oracle Solaris Service Management Facility (SMF)
Oracle Solaris Service Management Facility (SMF) provides an infrastructure that augments the
traditional UNIX startup scripts, init run levels, and configuration files. With the availability of SMF
on Oracle Solaris 11, system administrators can use simple commands to easily identify, observe, and
manage services on the system.
An Oracle Solaris service is any long-lived software object with a well-defined state and start and stop
controls that has a relationship to and dependencies on other services in the system. SMF can be
configured to build a self-healing service infrastructure. Through SMF, failing services can be
automatically restarted whenever possible, reducing the need for human intervention. If manual