created service "ocssd" with shell script which start some background services. it works fine but dependent service goes into maintenance as service "ocssd" status comes online where as background process tooks more time to start.
to resolve this i put sleep but it won't works as exepected. i need to put delay in changing smf service status to online or is it possible to put delay on dependent service. {code} #!/usr/bin/sh # # Sachin Butala (2010-02-17) # SMF Method file for Oracle 11gR2 OCSS # E-mail: sachin.butala at trueposition.com # . /lib/svc/share/smf_include.sh case "$1" in start) /u01/grid/oracle/product/11.2.0/asm_1/bin/crs_start.bin -all 2>&1 & sleep 10 ;; stop) /u01/grid/oracle/product/11.2.0/asm_1/bin/crs_stop.bin -all sleep 10 ;; 'restart') stop while pgrep ocssd > /dev/null do sleep 1 done start ;; *) echo "" echo "Usage: `basename $0` { start | stop | restart }" echo "" exit 64 ;; esac exit $SMF_EXIT_OK #---EOF {code} -- This message posted from opensolaris.org