OpenSolaris

Printable Version Enter a New Search
Bug ID 6422793
Synopsis when running "svcadm disable" shutdown dependents before shutting down requested service
State 10-Fix Delivered (Fix available in build)
Category:Subcategory utility:smf
Keywords opensolaris | rtiq_reviewed | smf
Responsible Engineer Renaud Manus
Reported Against snv_01 , solaris_10u4
Duplicate Of
Introduced In solaris_10
Commit to Fix snv_100
Fixed In snv_100
Release Fixed solaris_nevada(snv_100)
Related Bugs 6622195 , 6751469 , 6754648 , 6756331 , 6760182 , 6761838 , 6768429 , 6207705
Submit Date 6-May-2006
Last Update Date 8-October-2008
Description
Category
   utility
Sub-Category
   smf
Description
   At the user request (either "init 6" or an explicit "svcadm disable"), SMF shuts down the parent service BEFORE it tries to shut down its dependents. This equates to stopping a database before stopping the application server that depends on it.
SMF should stop all dependents first.
A full discussion can be found here:
http://forum.sun.com/jive/thread.jspa?messageID=328895
Frequency
   Always
Regression
   No
Steps to Reproduce
   Create two services, A and B, where B is dependent on A.
Run:
# svcadm disable A
Expected Result
   svc offlines B first before disabling A.
Actual Result
   svc disables A then tries to disable B.
Error Message(s)
   
Test Case
   
Workaround
   It is possible to add the following to the stop method of the dependency, for example a database:
if [ `svcs | grep -c app_server` != 0 ]; then
     svcadm disable -st app_server
fi
Submitter wants to work on bug
   No
Additional configuration information
For system/zone shutdown, this is fixed in Solaris nevada, build 12 by 6207705.
What's left is the request for shutdown of dependents before a "svcadm
disable" takes effect.
"SMF should stop all dependents first."

This is not correct for "exclude all" dependents.
Work Around
N/A
Comments
N/A