xref: /illumos-gate/usr/src/cmd/hal/addons/network-devices/network-discovery.xml (revision f6e214c7418f43af38bd8c3a557e3d0a1d311cfa)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4	Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
5	Use is subject to license terms.
6
7        Licensed under the Academic Free License version 2.1
8
9	ident	"%Z%%M%	%I%	%E% SMI"
10
11	NOTE:  This service manifest is not editable; its contents will
12	be overwritten by package or patch operations, including
13	operating system upgrade.  Make customizations in a different
14	file.
15
16	Service manifest for HAL network attached device discovery.
17-->
18
19<service_bundle type='manifest' name='SUNWhalr:device-discovery'>
20
21<service
22	name='network/device-discovery/printers'
23	type='service'
24	version='1'>
25
26	<dependency name='usr'
27		type='service'
28		grouping='require_all'
29		restart_on='none'>
30		<service_fmri value='svc:/system/filesystem/local' />
31	</dependency>
32
33	<dependency name='network-service'
34		grouping='require_all'
35		restart_on='none'
36		type='service'>
37		<service_fmri value='svc:/network/service' />
38	</dependency>
39
40	<dependency name='dbus'
41		type='service'
42		grouping='require_all'
43		restart_on='none'>
44		<service_fmri value='svc:/system/dbus' />
45	</dependency>
46
47	<dependency name='hal'
48		type='service'
49		grouping='require_all'
50		restart_on='refresh'>
51		<service_fmri value='svc:/system/hal' />
52	</dependency>
53
54	<exec_method
55		type='method'
56		name='start'
57		exec='/lib/svc/method/svc-network-discovery %m %i'
58		timeout_seconds='30'>
59	</exec_method>
60
61	<exec_method
62		type='method'
63		name='stop'
64		exec='/lib/svc/method/svc-network-discovery %m %i'
65		timeout_seconds='30'>
66	</exec_method>
67
68	<exec_method
69		type='method'
70		name='refresh'
71		exec='/lib/svc/method/svc-network-discovery %m %i'
72		timeout_seconds='30'>
73	</exec_method>
74
75	<property_group name='startd' type='framework'>
76		<propval name='duration' type='astring' value='transient' />
77	</property_group>
78
79	<instance
80		name='snmp'
81		enabled='false'>
82
83		<method_context>
84			<method_credential user='root' group='root' />
85		</method_context>
86
87		<property_group name='general' type='framework'>
88			<!-- to start/stop the discovery service -->
89			<propval name='action_authorization' type='astring'
90				value='solaris.smf.manage.discovery.printers.snmp' />
91			<propval name='value_authorization' type='astring'
92				value='solaris.smf.manage.discovery.printers.snmp' />
93		</property_group>
94
95		<property_group name='config' type='framework'>
96			<!-- authorization to add/delete config properties -->
97			<propval name='modify_authorization' type='astring'
98				value='solaris.smf.value.discovery.printers.snmp' />
99			<!-- authorization to modify config properties -->
100			<propval name='value_authorization' type='astring'
101				value='solaris.smf.value.discovery.printers.snmp' />
102		</property_group>
103	</instance>
104
105	<stability value='Unstable' />
106
107	<template>
108		<common_name>
109			<loctext xml:lang='C'>
110		Hardware Abstraction Layer network attached device discovery
111			</loctext>
112		</common_name>
113	</template>
114</service>
115
116</service_bundle>
117