xref: /freebsd/crypto/openssh/openssh.xml.in (revision 924226fba12cc9a228c73b956e1b7fa24c60b055)
1<?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
22        name='site/__SYSVINIT_NAME__'
23        type='service'
24        version='1'>
25
26<!--
27	We default to disabled so administrator can decide to enable or not.
28-->
29        <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'
59            exec='__SMF_METHOD_DIR__/__SYSVINIT_NAME__ start'
60            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>
91