nrpe: update to 4.1.3
[oi-userland.git] / components / sysutils / rsyslog / files / rsyslog.xml
blob6592617fd591cc84136bbaf3eed72cc2684b7910
1 <?xml version="1.0"?>
2 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
3 <!--
4     CDDL HEADER START
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.
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.
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]
21     CDDL HEADER END
22    
23     Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
25     NOTE:  This service manifest is not editable; its contents will
26     be overwritten by package or patch operations, including
27     operating system upgrade.  Make customizations in a different
28     file.
29 -->
31 <service_bundle type='manifest' name='system/rsyslog:rsyslog'>
33 <service
34         name='system/system-log'
35         type='service'
36         version='1'>
38         <instance name='rsyslog' enabled='false'>
39         <dependency
40                 name='milestone'
41                 grouping='require_all'
42                 restart_on='none'
43                 type='service'>
44                 <service_fmri value='svc:/milestone/sysconfig' />
45         </dependency>
47         <!--
48           rsyslog can log to non-root local directories.
49         -->
50         <dependency
51                 name='filesystem'
52                 grouping='require_all'
53                 restart_on='none'
54                 type='service'>
55                 <service_fmri value='svc:/system/filesystem/local' />
56         </dependency>
58         <!--
59           rsyslog can log to automounted files.
60         -->
61         <dependency
62                 name='autofs'
63                 grouping='optional_all'
64                 restart_on='none'
65                 type='service'>
66                 <service_fmri value='svc:/system/filesystem/autofs' />
67         </dependency>
69         <!--
70           rsyslog needs nameservice resolution to log to remote hosts.
71         -->
72         <dependency
73                 name='name-services'
74                 grouping='require_all'
75                 restart_on='none'
76                 type='service'>
77                 <service_fmri value='svc:/milestone/name-services' />
78         </dependency>
80         <dependent
81                 name='rsyslog_single-user'
82                 grouping='optional_all'
83                 restart_on='none'>
84                 <service_fmri value='svc:/milestone/multi-user' />
85         </dependent>
87         <!--
88                 The rsyslog start method includes a "savecore -m".
89                 Use an appropriately long timeout value.
90         -->
92                 <exec_method
93                         type='method'
94                         name='start'
95                         exec='/lib/svc/method/rsyslog'
96                         timeout_seconds='600' />
98                 <exec_method
99                         type='method'
100                         name='stop'
101                         exec=':kill'
102                         timeout_seconds='60' />
104                 <exec_method
105                         type='method'
106                         name='refresh'
107                         exec=':kill -HUP'
108                         timeout_seconds='60' />
110                 <template>
111                         <common_name>
112                                 <loctext xml:lang='C'>
113                                 reliable and extended system log daemon
114                                 </loctext>
115                         </common_name>
116                         <documentation>
117                                 <manpage title='rsyslogd' section='1M'
118                                     manpath='/usr/share/man' />
119                         </documentation>
120                 </template>
122         </instance>
124 </service>
126 </service_bundle>