OpenSolaris

Printable Version Enter a New Search
Bug ID 6500508
Synopsis Want dependencies to use property values
State 3-Accepted (Yes, that is a problem)
Category:Subcategory utility:smf
Keywords smf
Reported Against
Duplicate Of
Introduced In
Commit to Fix
Fixed In
Release Fixed
Related Bugs
Submit Date 4-December-2006
Last Update Date 31-January-2007
Description
It'd be very useful if SMF allowed for dependencies to take property information similar to methods. 
 
For example: 
<property_group name='my-service' type='application'> 
  <propval  
    name='install-directory'  
    type='astring'  
    value='/opt/my-service' /> 
</property_group> 
 
<property_group name='my-service' type='application'> 
  <propval name='config-file' type='astring' value='service.cfg' /> 
</property_group> 
 
<dependency  
  name='config-file' 
  grouping='require_all' 
  restart_on='refresh' 
  type='path'> 
  <service_fmri value='file://localhost/%{my-service/install-directory}/%{my-service/config-file}' /> 
</dependency>
Work Around
N/A
Comments
N/A
  Add Yourself to the Interest List