nrpe: update to 4.1.3
[oi-userland.git] / components / sysutils / snort / Solaris / snort.xml
blobd05d243cf1b0623d53165727f80122afda3473d0
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
4         CDDL HEADER START
6         The contents of this file are subject to the terms of the
7         Common Development and Distribution License (the "License").
8         You may not use this file except in compliance with the License.
10         You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11         or http://www.opensolaris.org/os/licensing.
12         See the License for the specific language governing permissions
13         and limitations under the License.
15         When distributing Covered Code, include this CDDL HEADER in each
16         file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17         If applicable, add the following below this CDDL HEADER, with the
18         fields enclosed by brackets "[]" replaced with your own identifying
19         information: Portions Copyright [yyyy] [name of copyright owner]
21         CDDL HEADER END
23         Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
25         NOTE:  This service manifest is not editable; its contents will
26         be overwritten by package or patch operations, including
27         operating system upgrade.  Make customizations in a different
28         file.
29 -->
31 <service_bundle type='manifest' name='SUNWsnortr:snort'>
33 <service
34         name='network/snort'
35         type='service'
36         version='1'>
38         <create_default_instance enabled='false' />
40         <single_instance />
42         <dependency name='fs-local'
43                 grouping='require_all'
44                 restart_on='none'
45                 type='service'>
46                 <service_fmri
47                         value='svc:/system/filesystem/local' />
48         </dependency>
50         <dependency name='fs-autofs'
51                 grouping='optional_all'
52                 restart_on='none'
53                 type='service'>
54                 <service_fmri value='svc:/system/filesystem/autofs' />
55         </dependency>
57         <dependency
58                 name='network'
59                 grouping='optional_all'
60                 restart_on='error'
61                 type='service'>
62                 <service_fmri value='svc:/milestone/network' />
63         </dependency>
65         <dependency name='net-loopback'
66                 grouping='require_all'
67                 restart_on='none'
68                 type='service'>
69                 <service_fmri value='svc:/network/loopback' />
70         </dependency>
72         <dependency name='net-physical'
73                 grouping='require_all'
74                 restart_on='none'
75                 type='service'>
76                 <service_fmri value='svc:/network/physical' />
77         </dependency>
79         <exec_method
80                 type='method'
81                 name='start'
82                 exec='/lib/svc/method/snortd start'
83                 timeout_seconds='60'>
84                 <method_context>
85                         <method_credential
86                                 user='noaccess'
87                                 group='noaccess'
88                                 privileges='basic,net_rawaccess' />
89                 </method_context>
90         </exec_method>
92         <exec_method
93                 type='method'
94                 name='stop'
95                 exec=':kill -9'
96                 timeout_seconds='60' />
98         <property_group name='startd'
99                 type='framework'>
100                 <!-- sub-process core dumps shouldn't restart session -->
101                 <propval name='ignore_error'
102                     type='astring' value='core,signal' />
103         </property_group>
105         <property_group name='general' type='framework'>
106                 <!-- to start stop snortd -->
107                 <propval name='action_authorization' type='astring'
108                         value='solaris.smf.manage.snort' />
109                 <propval name='value_authorization' type='astring'
110                         value='solaris.smf.manage.snort' />
111         </property_group>
113         <stability value='Unstable' />
115         <template>
116                 <common_name>
117                         <loctext xml:lang='C'>
118                         Snort daemon 
119                         </loctext>
120                 </common_name>
121                 <documentation>
122                         <manpage title='snort' section='1M' manpath='/usr/share/man' />
123                 </documentation>
124         </template>
126 </service>
128 </service_bundle>