blob: 8afe1d366c482a13f88723a015b9bc37344b976b [file] [log] [blame]
Damien Miller223897a2006-09-12 21:54:10 +10001<?xml version='1.0'?>
2<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
3<!--
4 Copyright (c) 2006 Chad Mynhier.
5
6 Permission to use, copy, modify, and distribute this software for any
7 purpose with or without fee is hereby granted, provided that the above
8 copyright notice and this permission notice appear in all copies.
9
10 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17-->
18
19<service_bundle type='manifest' name='OpenSSH server'>
20
21 <service
Tim Rice947fd592007-07-24 13:13:42 -070022 name='site/__SYSVINIT_NAME__'
Damien Miller223897a2006-09-12 21:54:10 +100023 type='service'
24 version='1'>
25
Tim Ricec3af6d42007-03-01 09:34:52 -080026<!--
27 We default to disabled so administrator can decide to enable or not.
28-->
Damien Miller223897a2006-09-12 21:54:10 +100029 <create_default_instance enabled='false'/>
30
31 <single_instance/>
32
33 <dependency
34 name='filesystem-local'
35 grouping='require_all'
36 restart_on='none'
37 type='service'>
38 <service_fmri value='svc:/system/filesystem/local'/>
39 </dependency>
40
41 <dependency
42 name='network'
43 grouping='require_all'
44 restart_on='none'
45 type='service'>
46 <service_fmri value='svc:/milestone/network'/>
47 </dependency>
48
49 <dependent
50 name='multi-user-server'
51 restart_on='none'
52 grouping='optional_all'>
53 <service_fmri value='svc:/milestone/multi-user-server'/>
54 </dependent>
55
56 <exec_method
57 name='start'
58 type='method'
Tim Riceffe3a8e2007-07-24 21:16:07 -070059 exec='__SMF_METHOD_DIR__/__SYSVINIT_NAME__ start'
Damien Miller223897a2006-09-12 21:54:10 +100060 timeout_seconds='60'>
61 <method_context/>
62 </exec_method>
63
64 <exec_method
65 name='stop'
66 type='method'
67 exec=':kill'
68 timeout_seconds='60'>
69 <method_context/>
70 </exec_method>
71
72 <property_group
73 name='startd'
74 type='framework'>
75 <propval name='ignore_error' type='astring' value='core,signal'/>
76 </property_group>
77
78 <template>
79 <common_name>
80 <loctext xml:lang='C'>OpenSSH server</loctext>
81 </common_name>
82 <documentation>
83 <manpage
84 title='sshd'
85 section='1M'
86 manpath='@prefix@/man'/>
87 </documentation>
88 </template>
89 </service>
90</service_bundle>