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