xref: /titanic_50/usr/src/cmd/vscan/vscand/vscan.xml (revision 7dbc8b885602a5bc79b886b1c735ce48b33dfd15)
1911106dfSjm199354<?xml version="1.0"?>
2911106dfSjm199354<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3911106dfSjm199354<!--
4911106dfSjm199354
5911106dfSjm199354	CDDL HEADER START
6911106dfSjm199354
7911106dfSjm199354	The contents of this file are subject to the terms of the
8911106dfSjm199354	Common Development and Distribution License (the "License").
9911106dfSjm199354	You may not use this file except in compliance with the License.
10911106dfSjm199354
11911106dfSjm199354	You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12911106dfSjm199354	or http://www.opensolaris.org/os/licensing.
13911106dfSjm199354	See the License for the specific language governing permissions
14911106dfSjm199354	and limitations under the License.
15911106dfSjm199354
16911106dfSjm199354	When distributing Covered Code, include this CDDL HEADER in each
17911106dfSjm199354	file and include the License file at usr/src/OPENSOLARIS.LICENSE.
18911106dfSjm199354	If applicable, add the following below this CDDL HEADER, with the
19911106dfSjm199354	fields enclosed by brackets "[]" replaced with your own identifying
20911106dfSjm199354	information: Portions Copyright [yyyy] [name of copyright owner]
21911106dfSjm199354
22911106dfSjm199354	CDDL HEADER END
23911106dfSjm199354
24*7dbc8b88Sjoyce mcintosh	Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
25911106dfSjm199354	Use is subject to license terms.
26911106dfSjm199354
27911106dfSjm199354	NOTE:  This service manifest is not editable; its contents will
28911106dfSjm199354	be overwritten by package or patch operations, including
29911106dfSjm199354	operating system upgrade.  Make customizations in a different file.
30911106dfSjm199354-->
31911106dfSjm199354
32911106dfSjm199354<service_bundle type='manifest' name='SUNWvscanr:vscan'>
33911106dfSjm199354
34911106dfSjm199354<!-- Name the service to 'system/filesystem/vscan'  -->
35911106dfSjm199354<service
36911106dfSjm199354	name='system/filesystem/vscan'
37911106dfSjm199354	type='service'
38911106dfSjm199354	version='1'>
39911106dfSjm199354
40911106dfSjm199354	<!-- Service has single instance  -->
41911106dfSjm199354	<single_instance/>
42911106dfSjm199354
43911106dfSjm199354	<!-- Identify dependencies.  -->
44*7dbc8b88Sjoyce mcintosh	<dependency name='network'
45911106dfSjm199354	    grouping='require_any'
46911106dfSjm199354	    restart_on='error'
47911106dfSjm199354	    type='service'>
48911106dfSjm199354		<service_fmri value='svc:/milestone/network'/>
49911106dfSjm199354	</dependency>
50911106dfSjm199354
51*7dbc8b88Sjoyce mcintosh	<dependency name='filesystem-local'
52*7dbc8b88Sjoyce mcintosh	    grouping='require_all'
53*7dbc8b88Sjoyce mcintosh	    restart_on='error'
54*7dbc8b88Sjoyce mcintosh	    type='service'>
55*7dbc8b88Sjoyce mcintosh		<service_fmri value='svc:/system/filesystem/local'/>
56*7dbc8b88Sjoyce mcintosh	</dependency>
57*7dbc8b88Sjoyce mcintosh
58911106dfSjm199354	<property_group name='general' type='framework'>
59911106dfSjm199354		<!-- To Start/Stop/Refresh the service -->
60911106dfSjm199354		<propval name='action_authorization' type='astring'
61911106dfSjm199354			value='solaris.smf.manage.vscan' />
62911106dfSjm199354		<propval name='value_authorization' type='astring'
63911106dfSjm199354			value='solaris.smf.manage.vscan' />
64911106dfSjm199354	</property_group>
65911106dfSjm199354
66911106dfSjm199354	<!-- Create default service instance.  -->
67911106dfSjm199354	<instance name='icap' enabled='false'>
68911106dfSjm199354
69911106dfSjm199354	<!-- Identify start/stop/refresh methods -->
70911106dfSjm199354	<exec_method
71911106dfSjm199354		type='method'
72911106dfSjm199354		name='start'
73911106dfSjm199354		exec='/usr/lib/vscan/vscand'
74911106dfSjm199354		timeout_seconds='60' >
75911106dfSjm199354		<method_context>
76911106dfSjm199354			<method_credential
77911106dfSjm199354				user='root'
78911106dfSjm199354				group='sys'
79911106dfSjm199354				privileges='basic,proc_setid,proc_audit,file_chown_self,file_dac_search,file_dac_read,file_flag_set'
80911106dfSjm199354				limit_privileges='basic,proc_setid,proc_audit,file_chown_self,file_dac_search,file_dac_read,file_flag_set'/>
81911106dfSjm199354		</method_context>
82911106dfSjm199354	</exec_method>
83911106dfSjm199354
84911106dfSjm199354	<exec_method
85911106dfSjm199354		type='method'
86911106dfSjm199354		name='stop'
87911106dfSjm199354		exec=':kill'
88911106dfSjm199354		timeout_seconds='60' >
89911106dfSjm199354	</exec_method>
90911106dfSjm199354
91911106dfSjm199354	<exec_method
92911106dfSjm199354		type='method'
93911106dfSjm199354		name='refresh'
94911106dfSjm199354		exec=':kill -HUP'
95911106dfSjm199354		timeout_seconds='60' >
96911106dfSjm199354	</exec_method>
97911106dfSjm199354
98911106dfSjm199354	<!-- vscan service-specific general configuration defaults -->
99911106dfSjm199354	<property_group name='vs_general' type='application'>
100911106dfSjm199354		<stability value='Evolving' />
101911106dfSjm199354		<propval name='value_authorization' type='astring'
102911106dfSjm199354			value='solaris.smf.value.vscan' />
103911106dfSjm199354		<propval name='maxsize' type='astring'
104911106dfSjm199354			value='1GB' override='true'/>
105911106dfSjm199354		<propval name='maxsize_action' type='boolean'
106911106dfSjm199354			value='true' override='true'/>
107911106dfSjm199354		<propval name='types' type='astring'
108911106dfSjm199354			value='+*' override='true'/>
109911106dfSjm199354		<propval name='viruslog' type='astring'
110911106dfSjm199354			value='' override='true'/>
111911106dfSjm199354	</property_group>
112911106dfSjm199354
113911106dfSjm199354	<!-- Create Service Template information -->
114911106dfSjm199354	<template>
115911106dfSjm199354		<common_name>
116911106dfSjm199354			<loctext xml:lang='C'> VSCAN Service daemon</loctext>
117911106dfSjm199354		</common_name>
118911106dfSjm199354		<documentation>
119911106dfSjm199354			<manpage title='vscand' section='1M'
120911106dfSjm199354				manpath='/usr/share/man' />
121911106dfSjm199354		</documentation>
122911106dfSjm199354	</template>
123911106dfSjm199354
124911106dfSjm199354	</instance>
125911106dfSjm199354
126911106dfSjm199354	<stability value='Evolving' />
127911106dfSjm199354
128911106dfSjm199354</service>
129911106dfSjm199354
130911106dfSjm199354</service_bundle>
131