I'm trying to add a new service through SMF but I'm getting an error while trying to add it via svccfg. As far as I can tell, everything looks good. Can someone help guide me in the right direction?
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type='manifest' name='routproc'>
<service
name='system/routproc'
type='service'
version='1'>
<single_instance />
<exec_method
type='method'
name='start'
exec='/lib/svc/manifest/svc-routproc'
timeout_seconds='60' />
<exec_method
type='method'
name='stop'
exec=':kill'
timeout_seconds='60' />
<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='child' />
</property_group>
<!-- Wait for network interfaces to be initialized. -->
<dependency name="network" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/milestone/network:default"/>
</dependency>
<!-- Wait for all local filesystems to be mounted. -->
<dependency name="filesystem-local" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/system/filesystem/local:default"/>
</dependency>
<instance name='default' enabled='false'>
<method_context>
<method_credential user='micro' group='mmaker' />
</method_context>
</instance>
<stability value='Unstable' />
<create_default_instance enabled='false' />
<template>
<common_name>
<loctext xml:lang='C'>
routproc service for MileMaker
</loctext>
</common_name>
</template>
</service>
</service_bundle>
Returns,
# svccfg import /var/svc/manifest/system/routproc.xml
/var/svc/manifest/system/routproc.xml:8: element service: validity error : Element service content does not follow the DTD, expecting (create_default_instance? , single_instance? , restarter? , dependency* , dependent* , method_context? , exec_method* , property_group* , instance* , stability? , template?), got (single_instance exec_method exec_method property_group dependency dependency instance stability create_default_instance template )
svccfg: Document is not valid.
Thanks!
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type='manifest' name='routproc'>
<service
name='system/routproc'
type='service'
version='1'>
<single_instance />
<exec_method
type='method'
name='start'
exec='/lib/svc/manifest/svc-routproc'
timeout_seconds='60' />
<exec_method
type='method'
name='stop'
exec=':kill'
timeout_seconds='60' />
<property_group name='startd' type='framework'>
<propval name='duration' type='astring' value='child' />
</property_group>
<!-- Wait for network interfaces to be initialized. -->
<dependency name="network" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/milestone/network:default"/>
</dependency>
<!-- Wait for all local filesystems to be mounted. -->
<dependency name="filesystem-local" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/system/filesystem/local:default"/>
</dependency>
<instance name='default' enabled='false'>
<method_context>
<method_credential user='micro' group='mmaker' />
</method_context>
</instance>
<stability value='Unstable' />
<create_default_instance enabled='false' />
<template>
<common_name>
<loctext xml:lang='C'>
routproc service for MileMaker
</loctext>
</common_name>
</template>
</service>
</service_bundle>
Returns,
# svccfg import /var/svc/manifest/system/routproc.xml
/var/svc/manifest/system/routproc.xml:8: element service: validity error : Element service content does not follow the DTD, expecting (create_default_instance? , single_instance? , restarter? , dependency* , dependent* , method_context? , exec_method* , property_group* , instance* , stability? , template?), got (single_instance exec_method exec_method property_group dependency dependency instance stability create_default_instance template )
svccfg: Document is not valid.
Thanks!