xref: /titanic_44/usr/src/cmd/ssh/etc/ssh.xml (revision 1e4c938b57d1656808e4112127ff1dce3eba5314)
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='SUNWsshdr:ssh'>
33
34<service
35	name='network/ssh'
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 name='net-loopback'
59		grouping='require_all'
60		restart_on='none'
61		type='service'>
62		<service_fmri value='svc:/network/loopback' />
63	</dependency>
64
65	<dependency name='net-physical'
66		grouping='require_all'
67		restart_on='none'
68		type='service'>
69		<service_fmri value='svc:/network/physical' />
70	</dependency>
71
72	<dependency name='cryptosvc'
73		grouping='require_all'
74		restart_on='none'
75		type='service'>
76		<service_fmri value='svc:/system/cryptosvc' />
77	</dependency>
78
79	<dependency name='utmp'
80		grouping='require_all'
81		restart_on='none'
82		type='service'>
83		<service_fmri value='svc:/system/utmp' />
84	</dependency>
85
86	<dependency name='network_ipfilter'
87		grouping='optional_all'
88		restart_on='error'
89		type='service'>
90		<service_fmri value='svc:/network/ipfilter:default' />
91	</dependency>
92
93	<dependency name='config_data'
94		grouping='require_all'
95		restart_on='restart'
96		type='path'>
97		<service_fmri
98		    value='file://localhost/etc/ssh/sshd_config' />
99	</dependency>
100
101	<dependent
102		name='ssh_multi-user-server'
103		grouping='optional_all'
104		restart_on='none'>
105			<service_fmri
106			    value='svc:/milestone/multi-user-server' />
107	</dependent>
108
109	<exec_method
110		type='method'
111		name='start'
112		exec='/lib/svc/method/sshd start'
113		timeout_seconds='60'/>
114
115	<exec_method
116		type='method'
117		name='stop'
118		exec=':kill'
119		timeout_seconds='60' />
120
121	<exec_method
122		type='method'
123		name='refresh'
124		exec='/lib/svc/method/sshd restart'
125		timeout_seconds='60' />
126
127	<property_group name='startd'
128		type='framework'>
129		<!-- sub-process core dumps shouldn't restart session -->
130		<propval name='ignore_error'
131		    type='astring' value='core,signal' />
132	</property_group>
133
134        <property_group name='general' type='framework'>
135                <!-- to start stop sshd -->
136                <propval name='action_authorization' type='astring'
137                        value='solaris.smf.manage.ssh' />
138        </property_group>
139
140	<property_group name='firewall_context' type='com.sun,fw_definition'>
141		<propval name='name' type='astring' value='ssh' />
142		<propval name='ipf_method' type='astring'
143		    value='/lib/svc/method/sshd ipfilter' />
144	</property_group>
145
146	<property_group name='firewall_config' type='com.sun,fw_configuration'>
147		<propval name='policy' type='astring' value='use_global' />
148		<propval name='apply_to' type='astring' value='' />
149		<propval name='exceptions' type='astring' value='' />
150		<propval name='value_authorization' type='astring'
151			value='solaris.smf.value.firewall.config' />
152	</property_group>
153
154	<stability value='Unstable' />
155
156	<template>
157		<common_name>
158			<loctext xml:lang='C'>
159			SSH server
160			</loctext>
161		</common_name>
162		<documentation>
163			<manpage title='sshd' section='1M' manpath='/usr/share/man' />
164		</documentation>
165	</template>
166
167</service>
168
169</service_bundle>
170