xref: /illumos-gate/usr/src/cmd/ipf/svc/ipfilter.xml (revision 3d393ee6c37fa10ac512ed6d36109ad616dc7c1a)
1<?xml version="1.0"?>
2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3<!--
4 Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
5 Use is subject to license terms.
6
7 CDDL HEADER START
8
9 The contents of this file are subject to the terms of the
10 Common Development and Distribution License (the "License").
11 You may not use this file except in compliance with the License.
12
13 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 or http://www.opensolaris.org/os/licensing.
15 See the License for the specific language governing permissions
16 and limitations under the License.
17
18 When distributing Covered Code, include this CDDL HEADER in each
19 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
20 If applicable, add the following below this CDDL HEADER, with the
21 fields enclosed by brackets "[]" replaced with your own identifying
22 information: Portions Copyright [yyyy] [name of copyright owner]
23
24 CDDL HEADER END
25
26	NOTE:  This service description is not editable; its contents
27	may be overwritten by package or patch operations, including
28	operating system upgrade.  Make customizations in a different
29	file.
30
31	Service manifest for the ipfilter service.
32-->
33
34<service_bundle type='manifest' name='SUNWipfr:ipfilter'>
35
36<service
37	name='network/ipfilter'
38	type='service'
39	version='1'>
40
41	<create_default_instance enabled='false' />
42
43	<single_instance />
44
45	<dependency
46	    name='config'
47	    grouping='require_all'
48	    restart_on='restart'
49	    type='path'>
50		<service_fmri value='file://localhost/etc/ipf/ipf.conf' />
51	</dependency>
52
53	<dependency
54	    name='filesystem'
55	    grouping='require_all'
56	    restart_on='none'
57	    type='service'>
58		<service_fmri value='svc:/system/filesystem/minimal' />
59	</dependency>
60
61	<dependency
62	    name='physical'
63	    grouping='require_all'
64	    restart_on='restart'
65	    type='service'>
66		<service_fmri value='svc:/network/physical' />
67	</dependency>
68
69	<dependency
70	    name='identity'
71	    grouping='require_all'
72	    restart_on='restart'
73	    type='service'>
74		<service_fmri value='svc:/system/identity:node' />
75	</dependency>
76
77	<dependent
78	    name='network'
79	    grouping='optional_all'
80	    restart_on='restart'>
81		<service_fmri value='svc:/milestone/network' />
82	</dependent>
83
84	<exec_method
85		type='method'
86		name='stop'
87		exec='/lib/svc/method/ipfilter stop'
88		timeout_seconds='60' >
89	</exec_method>
90
91	<exec_method
92		type='method'
93		name='start'
94		exec='/lib/svc/method/ipfilter start'
95		timeout_seconds='30' >
96	</exec_method>
97
98	<exec_method
99		type='method'
100		name='refresh'
101		exec='/lib/svc/method/ipfilter reload'
102		timeout_seconds='30' >
103	</exec_method>
104
105	<property_group
106		name='startd'
107		type='framework'>
108		<propval name='duration' type='astring' value='transient' />
109	</property_group>
110
111	<stability value='Unstable' />
112
113	<template>
114		<common_name>
115			<loctext xml:lang='C'>IP Filter</loctext>
116		</common_name>
117		<description>
118			<loctext xml:lang='C'>
119			Solaris IP Filter - host-based firewall
120			</loctext>
121		</description>
122		<documentation>
123			<manpage title='ipfilter' section='5'
124				manpath='/usr/share/man' />
125		</documentation>
126	</template>
127</service>
128
129</service_bundle>
130