0
|
1 |
<?xml version="1.0"?>
|
|
2 |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
|
|
3 |
<!--
|
|
4 |
CDDL HEADER START
|
|
5 |
|
|
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.
|
|
9 |
|
|
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.
|
|
14 |
|
|
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]
|
|
20 |
|
|
21 |
CDDL HEADER END
|
|
22 |
|
|
23 |
Copyright 2009 Sun Microsystems, Inc. All rights reserved.
|
|
24 |
Use is subject to license terms.
|
|
25 |
|
|
26 |
NOTE: This service manifest is not editable; its contents will
|
|
27 |
be overwritten by package or patch operations, including
|
|
28 |
operating system upgrade. Make customizations in a different
|
|
29 |
file.
|
|
30 |
-->
|
|
31 |
|
|
32 |
<service_bundle type='manifest' name='SUNWsnortr:snort'>
|
|
33 |
|
|
34 |
<service
|
|
35 |
name='network/snort'
|
|
36 |
type='service'
|
|
37 |
version='1'>
|
|
38 |
|
|
39 |
<create_default_instance enabled='false' />
|
|
40 |
|
|
41 |
<single_instance />
|
|
42 |
|
|
43 |
<dependency name='fs-local'
|
|
44 |
grouping='require_all'
|
|
45 |
restart_on='none'
|
|
46 |
type='service'>
|
|
47 |
<service_fmri
|
|
48 |
value='svc:/system/filesystem/local' />
|
|
49 |
</dependency>
|
|
50 |
|
|
51 |
<dependency name='fs-autofs'
|
|
52 |
grouping='optional_all'
|
|
53 |
restart_on='none'
|
|
54 |
type='service'>
|
|
55 |
<service_fmri value='svc:/system/filesystem/autofs' />
|
|
56 |
</dependency>
|
|
57 |
|
|
58 |
<dependency
|
|
59 |
name='network'
|
|
60 |
grouping='optional_all'
|
|
61 |
restart_on='error'
|
|
62 |
type='service'>
|
|
63 |
<service_fmri value='svc:/milestone/network' />
|
|
64 |
</dependency>
|
|
65 |
|
|
66 |
<dependency name='net-loopback'
|
|
67 |
grouping='require_all'
|
|
68 |
restart_on='none'
|
|
69 |
type='service'>
|
|
70 |
<service_fmri value='svc:/network/loopback' />
|
|
71 |
</dependency>
|
|
72 |
|
|
73 |
<dependency name='net-physical'
|
|
74 |
grouping='require_all'
|
|
75 |
restart_on='none'
|
|
76 |
type='service'>
|
|
77 |
<service_fmri value='svc:/network/physical' />
|
|
78 |
</dependency>
|
|
79 |
|
|
80 |
<exec_method
|
|
81 |
type='method'
|
|
82 |
name='start'
|
|
83 |
exec='/lib/svc/method/snortd start'
|
|
84 |
timeout_seconds='60'>
|
|
85 |
<method_context>
|
|
86 |
<method_credential
|
|
87 |
user='noaccess'
|
|
88 |
group='noaccess'
|
|
89 |
privileges='basic,net_rawaccess' />
|
|
90 |
</method_context>
|
|
91 |
</exec_method>
|
|
92 |
|
|
93 |
<exec_method
|
|
94 |
type='method'
|
|
95 |
name='stop'
|
|
96 |
exec=':kill -9'
|
|
97 |
timeout_seconds='60' />
|
|
98 |
|
|
99 |
<property_group name='startd'
|
|
100 |
type='framework'>
|
|
101 |
<!-- sub-process core dumps shouldn't restart session -->
|
|
102 |
<propval name='ignore_error'
|
|
103 |
type='astring' value='core,signal' />
|
|
104 |
</property_group>
|
|
105 |
|
|
106 |
<property_group name='general' type='framework'>
|
|
107 |
<!-- to start stop snortd -->
|
|
108 |
<propval name='action_authorization' type='astring'
|
|
109 |
value='solaris.smf.manage.snort' />
|
|
110 |
<propval name='value_authorization' type='astring'
|
|
111 |
value='solaris.smf.manage.snort' />
|
|
112 |
</property_group>
|
|
113 |
|
|
114 |
<stability value='Unstable' />
|
|
115 |
|
|
116 |
<template>
|
|
117 |
<common_name>
|
|
118 |
<loctext xml:lang='C'>
|
|
119 |
Snort daemon
|
|
120 |
</loctext>
|
|
121 |
</common_name>
|
|
122 |
<documentation>
|
|
123 |
<manpage title='snort' section='1M' manpath='/usr/share/man' />
|
|
124 |
</documentation>
|
|
125 |
</template>
|
|
126 |
|
|
127 |
</service>
|
|
128 |
|
|
129 |
</service_bundle>
|