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 2008 Sun Microsystems, Inc. All rights reserved. 25 Use is subject to license terms. 26 27 NOTE: This service manifest is not editable; its contents will 28 be overwritten by package or patch operations, including 29 operating system upgrade. Make customizations in a different file. 30--> 31 32<service_bundle type='manifest' name='SUNWvscanr:vscan'> 33 34<!-- Name the service to 'system/filesystem/vscan' --> 35<service 36 name='system/filesystem/vscan' 37 type='service' 38 version='1'> 39 40 <!-- Service has single instance --> 41 <single_instance/> 42 43 <!-- Identify dependencies. --> 44 <dependency name='network' 45 grouping='require_any' 46 restart_on='error' 47 type='service'> 48 <service_fmri value='svc:/milestone/network'/> 49 </dependency> 50 51 <dependency name='filesystem-local' 52 grouping='require_all' 53 restart_on='error' 54 type='service'> 55 <service_fmri value='svc:/system/filesystem/local'/> 56 </dependency> 57 58 <property_group name='general' type='framework'> 59 <!-- To Start/Stop/Refresh the service --> 60 <propval name='action_authorization' type='astring' 61 value='solaris.smf.manage.vscan' /> 62 <propval name='value_authorization' type='astring' 63 value='solaris.smf.manage.vscan' /> 64 </property_group> 65 66 <!-- Create default service instance. --> 67 <instance name='icap' enabled='false'> 68 69 <!-- Identify start/stop/refresh methods --> 70 <exec_method 71 type='method' 72 name='start' 73 exec='/usr/lib/vscan/vscand' 74 timeout_seconds='60' > 75 <method_context> 76 <method_credential 77 user='root' 78 group='sys' 79 privileges='basic,proc_setid,proc_audit,file_chown_self,file_dac_search,file_dac_read,file_flag_set' 80 limit_privileges='basic,proc_setid,proc_audit,file_chown_self,file_dac_search,file_dac_read,file_flag_set'/> 81 </method_context> 82 </exec_method> 83 84 <exec_method 85 type='method' 86 name='stop' 87 exec=':kill' 88 timeout_seconds='60' > 89 </exec_method> 90 91 <exec_method 92 type='method' 93 name='refresh' 94 exec=':kill -HUP' 95 timeout_seconds='60' > 96 </exec_method> 97 98 <!-- vscan service-specific general configuration defaults --> 99 <property_group name='vs_general' type='application'> 100 <stability value='Evolving' /> 101 <propval name='value_authorization' type='astring' 102 value='solaris.smf.value.vscan' /> 103 <propval name='maxsize' type='astring' 104 value='1GB' override='true'/> 105 <propval name='maxsize_action' type='boolean' 106 value='true' override='true'/> 107 <propval name='types' type='astring' 108 value='+*' override='true'/> 109 <propval name='viruslog' type='astring' 110 value='' override='true'/> 111 </property_group> 112 113 <!-- Create Service Template information --> 114 <template> 115 <common_name> 116 <loctext xml:lang='C'> VSCAN Service daemon</loctext> 117 </common_name> 118 <documentation> 119 <manpage title='vscand' section='8' 120 manpath='/usr/share/man' /> 121 </documentation> 122 </template> 123 124 </instance> 125 126 <stability value='Evolving' /> 127 128</service> 129 130</service_bundle> 131