xref: /titanic_50/usr/src/cmd/ssh/etc/ssh.xml (revision 9113a79cf228b8f7bd509b1328adf88659dfe218)
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, Version 1.0 only
8	(the "License").  You may not use this file except in compliance
9	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 2004 Sun Microsystems, Inc.  All rights reserved.
25	Use is subject to license terms.
26
27	ident	"%Z%%M%	%I%	%E% SMI"
28
29	NOTE:  This service manifest is not editable; its contents will
30	be overwritten by package or patch operations, including
31	operating system upgrade.  Make customizations in a different
32	file.
33-->
34
35<service_bundle type='manifest' name='SUNWsshdr:ssh'>
36
37<service
38	name='network/ssh'
39	type='service'
40	version='1'>
41
42	<create_default_instance enabled='false' />
43
44	<single_instance />
45
46	<dependency name='fs-local'
47		grouping='require_all'
48		restart_on='none'
49		type='service'>
50		<service_fmri
51			value='svc:/system/filesystem/local' />
52	</dependency>
53
54	<dependency name='fs-autofs'
55		grouping='optional_all'
56		restart_on='none'
57		type='service'>
58		<service_fmri value='svc:/system/filesystem/autofs' />
59	</dependency>
60
61	<dependency name='net-loopback'
62		grouping='require_all'
63		restart_on='none'
64		type='service'>
65		<service_fmri value='svc:/network/loopback' />
66	</dependency>
67
68	<dependency name='net-physical'
69		grouping='require_all'
70		restart_on='none'
71		type='service'>
72		<service_fmri value='svc:/network/physical' />
73	</dependency>
74
75	<dependency name='cryptosvc'
76		grouping='require_all'
77		restart_on='none'
78		type='service'>
79		<service_fmri value='svc:/system/cryptosvc' />
80	</dependency>
81
82	<dependency name='utmp'
83		grouping='require_all'
84		restart_on='none'
85		type='service'>
86		<service_fmri value='svc:/system/utmp' />
87	</dependency>
88
89	<dependency name='config_data'
90		grouping='require_all'
91		restart_on='restart'
92		type='path'>
93		<service_fmri
94		    value='file://localhost/etc/ssh/sshd_config' />
95	</dependency>
96
97	<dependent
98		name='ssh_multi-user-server'
99		grouping='optional_all'
100		restart_on='none'>
101			<service_fmri
102			    value='svc:/milestone/multi-user-server' />
103	</dependent>
104
105	<exec_method
106		type='method'
107		name='start'
108		exec='/lib/svc/method/sshd start'
109		timeout_seconds='60'/>
110
111	<exec_method
112		type='method'
113		name='stop'
114		exec=':kill'
115		timeout_seconds='60' />
116
117	<exec_method
118		type='method'
119		name='refresh'
120		exec='/lib/svc/method/sshd restart'
121		timeout_seconds='60' />
122
123	<property_group name='startd'
124		type='framework'>
125		<!-- sub-process core dumps shouldn't restart session -->
126		<propval name='ignore_error'
127		    type='astring' value='core,signal' />
128	</property_group>
129
130        <property_group name='general' type='framework'>
131                <!-- to start stop sshd -->
132                <propval name='action_authorization' type='astring'
133                        value='solaris.smf.manage.ssh' />
134        </property_group>
135
136	<stability value='Unstable' />
137
138	<template>
139		<common_name>
140			<loctext xml:lang='C'>
141			SSH server
142			</loctext>
143		</common_name>
144		<documentation>
145			<manpage title='sshd' section='1M' manpath='/usr/share/man' />
146		</documentation>
147	</template>
148
149</service>
150
151</service_bundle>
152