David Bustos wrote:

>Quoth Bernd Schemmer on Fri, Apr 28, 2006 at 04:30:46AM -0700:
>  
>
>>To avoid this kind of error in the future I would like to check if
>>there is an dependency cycle after changing the dependency of
>>a service.
>>
>>Is this possible without rebooting?
>>    
>>
>
>I believe svc.startd detects dependency cycles on svcadm refresh.
>I presume you issued a svcadm refresh after adding the dependency, and
>the service did not go into maintenance?
>
>  
>
Just tried it again, svc.startd does check for dependency cycles on 
svcadm refresh:
|
[ Apr 28 12:53:26 Executing start method ("/lib/svc/method/ipfilter 
start") ] 
[ Apr 28 12:53:26 Method "start" exited with status 0 
]                       
[ Apr 28 18:08:32 Stopping for maintenance due to dependency_cycle. 
]         
[ Apr 28 18:08:32 Executing stop method ("/lib/svc/method/ipfilter 
stop") ]   
[ Apr 28 18:08:32 Method "stop" exited with status 0 
]                        
[ Apr 28 18:08:32 Rereading configuration. 
]                                  



But IMHO this check is also done to late if you're working on a 
production system.

Bernd
|

-- 
Bernd Schemmer, Frankfurt am Main, Germany
http://home.arcor.de/bnsmb/index.html

M?s temprano que tarde el mundio cambiar?
                        Fidel Castro


Reply via email to