xref: /illumos-gate/usr/src/cmd/syslogd/system-log.xml (revision b5358705b92a175b02aad08cd1c6b83dc69e2ae6)
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    Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
27
28    NOTE:  This service manifest is not editable; its contents will
29    be overwritten by package or patch operations, including
30    operating system upgrade.  Make customizations in a different
31    file.
32-->
33
34<service_bundle type='manifest' name='SUNWcsr:syslog'>
35
36<service
37	name='system/system-log'
38	type='service'
39	version='1'>
40
41	<create_default_instance enabled='false' />
42
43	<single_instance/>
44
45	<dependency
46		name='milestone'
47		grouping='require_all'
48		restart_on='none'
49		type='service'>
50		<service_fmri value='svc:/milestone/sysconfig' />
51	</dependency>
52
53	<!--
54	  syslogd(1M) can log to non-root local directories.
55	-->
56	<dependency
57		name='filesystem'
58		grouping='require_all'
59		restart_on='none'
60		type='service'>
61		<service_fmri value='svc:/system/filesystem/local' />
62	</dependency>
63
64	<!--
65	  syslogd(1M) can log to automounted files.
66	-->
67	<dependency
68		name='autofs'
69		grouping='optional_all'
70		restart_on='none'
71		type='service'>
72		<service_fmri value='svc:/system/filesystem/autofs' />
73	</dependency>
74
75	<!--
76	  syslogd(1M) needs nameservice resolution to log to remote hosts.
77	-->
78	<dependency
79		name='name-services'
80		grouping='require_all'
81		restart_on='none'
82		type='service'>
83		<service_fmri value='svc:/milestone/name-services' />
84	</dependency>
85
86	<dependent
87		name='system-log_single-user'
88		grouping='optional_all'
89		restart_on='none'>
90		<service_fmri value='svc:/milestone/multi-user' />
91	</dependent>
92
93	<!--
94		The system-log start method includes a "savecore -m".
95		Use an appropriately long timeout value.
96	-->
97	<exec_method
98		type='method'
99		name='start'
100		exec='/lib/svc/method/system-log'
101		timeout_seconds='600' />
102
103	<exec_method
104		type='method'
105		name='stop'
106		exec=':kill'
107		timeout_seconds='60' />
108
109	<exec_method
110		type='method'
111		name='refresh'
112		exec=':kill -HUP'
113		timeout_seconds='60' />
114
115	<property_group name='general' type='framework'>
116		<!-- to start stop syslog daemon -->
117		<propval name='action_authorization' type='astring'
118			value='solaris.smf.manage.system-log' />
119	</property_group>
120
121	<property_group name='config' type='application'>
122		<!-- default property settings for syslogd(1m) -->
123
124		<!-- Specifies whether remote messages are logged.
125		     log_from_remote=false is equivalent to the -t
126		     command-line option. log_from_remote=true
127		     is equivalent to the -T command-line option.
128		-->
129		<propval
130			name='log_from_remote'
131			type='boolean'
132			value='false' />
133
134		<!-- authorization to modify the configuration properties -->
135		<propval name='value_authorization' type='astring'
136			value='solaris.smf.value.system-log' />
137	</property_group>
138
139	<property_group name='firewall_context' type='com.sun,fw_definition'>
140		<propval name='name' type='astring' value='syslog' />
141	</property_group>
142
143	<property_group name='firewall_config' type='com.sun,fw_configuration'>
144		<propval name='policy' type='astring' value='use_global' />
145		<propval name='block_policy' type='astring'
146			value='use_global' />
147		<propval name='apply_to' type='astring' value='' />
148		<propval name='apply_to_6' type='astring' value='' />
149		<propval name='exceptions' type='astring' value='' />
150		<propval name='exceptions_6' type='astring' value='' />
151		<propval name='target' type='astring' value='' />
152		<propval name='target_6' type='astring' value='' />
153		<propval name='value_authorization' type='astring'
154			value='solaris.smf.value.firewall.config' />
155	</property_group>
156
157	<stability value='Unstable' />
158
159	<template>
160		<common_name>
161			<loctext xml:lang='C'> system log
162			</loctext>
163		</common_name>
164		<documentation>
165			<manpage title='syslogd' section='1M'
166				manpath='/usr/share/man' />
167		</documentation>
168	</template>
169</service>
170
171</service_bundle>
172