xref: /titanic_44/usr/src/cmd/vscan/vscand/vscan.xml (revision e79c98e6c943cb3032f272714ff4ce6137d40394)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4
5	CDDL HEADER START
6
7	The contents of this file are subject to the terms of the
8	Common Development and Distribution License (the "License").
9	You may not use this file except in compliance with the License.
10
11	You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12	or http://www.opensolaris.org/os/licensing.
13	See the License for the specific language governing permissions
14	and limitations under the License.
15
16	When distributing Covered Code, include this CDDL HEADER in each
17	file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18	If applicable, add the following below this CDDL HEADER, with the
19	fields enclosed by brackets "[]" replaced with your own identifying
20	information: Portions Copyright [yyyy] [name of copyright owner]
21
22	CDDL HEADER END
23
24	Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
25	Use is subject to license terms.
26
27	ident	"%Z%%M%	%I%	%E% SMI"
28
29	NOTE:  This service manifest is not editable; its contents will
30	be overwritten by package or patch operations, including
31	operating system upgrade.  Make customizations in a different file.
32-->
33
34<service_bundle type='manifest' name='SUNWvscanr:vscan'>
35
36<!-- Name the service to 'system/filesystem/vscan'  -->
37<service
38	name='system/filesystem/vscan'
39	type='service'
40	version='1'>
41
42	<!-- Service has single instance  -->
43	<single_instance/>
44
45	<!-- Identify dependencies.  -->
46	<dependency
47		name='milestone'
48		grouping='require_any'
49		restart_on='error'
50		type='service'>
51		<service_fmri value='svc:/milestone/network' />
52	</dependency>
53
54	<property_group name='general' type='framework'>
55		<!-- To Start/Stop/Refresh the service -->
56		<propval name='action_authorization' type='astring'
57			value='solaris.smf.manage.vscan' />
58		<propval name='value_authorization' type='astring'
59			value='solaris.smf.manage.vscan' />
60	</property_group>
61
62	<!-- Create default service instance.  -->
63	<instance name='icap' enabled='false'>
64
65	<!-- Identify start/stop/refresh methods -->
66	<exec_method
67		type='method'
68		name='start'
69		exec='/usr/lib/vscan/vscand'
70		timeout_seconds='60' >
71		<method_context>
72			<method_credential
73				user='root'
74				group='sys'
75				privileges='basic,proc_setid,proc_audit,file_chown_self,file_dac_search,file_dac_read,file_flag_set'
76				limit_privileges='basic,proc_setid,proc_audit,file_chown_self,file_dac_search,file_dac_read,file_flag_set'/>
77		</method_context>
78	</exec_method>
79
80	<exec_method
81		type='method'
82		name='stop'
83		exec=':kill'
84		timeout_seconds='60' >
85	</exec_method>
86
87	<exec_method
88		type='method'
89		name='refresh'
90		exec=':kill -HUP'
91		timeout_seconds='60' >
92	</exec_method>
93
94	<!-- vscan service-specific general configuration defaults -->
95	<property_group name='vs_general' type='application'>
96		<stability value='Evolving' />
97		<propval name='value_authorization' type='astring'
98			value='solaris.smf.value.vscan' />
99		<propval name='maxsize' type='astring'
100			value='1GB' override='true'/>
101		<propval name='maxsize_action' type='boolean'
102			value='true' override='true'/>
103		<propval name='types' type='astring'
104			value='+*' override='true'/>
105		<propval name='viruslog' type='astring'
106			value='' override='true'/>
107	</property_group>
108
109	<!-- Create Service Template information -->
110	<template>
111		<common_name>
112			<loctext xml:lang='C'> VSCAN Service daemon</loctext>
113		</common_name>
114		<documentation>
115			<manpage title='vscand' section='1M'
116				manpath='/usr/share/man' />
117		</documentation>
118	</template>
119
120	</instance>
121
122	<stability value='Evolving' />
123
124</service>
125
126</service_bundle>
127