xref: /illumos-gate/usr/src/cmd/syslogd/system-log.xml (revision bbf215553c7233fbab8a0afdf1fac74c44781867)
17c478bd9Sstevel@tonic-gate<?xml version="1.0"?>
27c478bd9Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
37c478bd9Sstevel@tonic-gate<!--
47c478bd9Sstevel@tonic-gate    CDDL HEADER START
57c478bd9Sstevel@tonic-gate
67c478bd9Sstevel@tonic-gate    The contents of this file are subject to the terms of the
70ea5e3a5Sjjj    Common Development and Distribution License (the "License").
80ea5e3a5Sjjj    You may not use this file except in compliance with the License.
97c478bd9Sstevel@tonic-gate
107c478bd9Sstevel@tonic-gate    You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
117c478bd9Sstevel@tonic-gate    or http://www.opensolaris.org/os/licensing.
127c478bd9Sstevel@tonic-gate    See the License for the specific language governing permissions
137c478bd9Sstevel@tonic-gate    and limitations under the License.
147c478bd9Sstevel@tonic-gate
157c478bd9Sstevel@tonic-gate    When distributing Covered Code, include this CDDL HEADER in each
167c478bd9Sstevel@tonic-gate    file and include the License file at usr/src/OPENSOLARIS.LICENSE.
177c478bd9Sstevel@tonic-gate    If applicable, add the following below this CDDL HEADER, with the
187c478bd9Sstevel@tonic-gate    fields enclosed by brackets "[]" replaced with your own identifying
197c478bd9Sstevel@tonic-gate    information: Portions Copyright [yyyy] [name of copyright owner]
207c478bd9Sstevel@tonic-gate
217c478bd9Sstevel@tonic-gate    CDDL HEADER END
227c478bd9Sstevel@tonic-gate
23eb1a3463STruong Nguyen    Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
240ea5e3a5Sjjj    Use is subject to license terms.
250ea5e3a5Sjjj
267ddce999SHans Rosenfeld    Copyright 2016 Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
277ddce999SHans Rosenfeld
287c478bd9Sstevel@tonic-gate    NOTE:  This service manifest is not editable; its contents will
297c478bd9Sstevel@tonic-gate    be overwritten by package or patch operations, including
307c478bd9Sstevel@tonic-gate    operating system upgrade.  Make customizations in a different
317c478bd9Sstevel@tonic-gate    file.
327c478bd9Sstevel@tonic-gate-->
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWcsr:syslog'>
357c478bd9Sstevel@tonic-gate
367c478bd9Sstevel@tonic-gate<service
377c478bd9Sstevel@tonic-gate	name='system/system-log'
387c478bd9Sstevel@tonic-gate	type='service'
397c478bd9Sstevel@tonic-gate	version='1'>
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gate	<create_default_instance enabled='false' />
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gate	<single_instance/>
447c478bd9Sstevel@tonic-gate
457c478bd9Sstevel@tonic-gate	<dependency
467c478bd9Sstevel@tonic-gate		name='milestone'
477c478bd9Sstevel@tonic-gate		grouping='require_all'
487c478bd9Sstevel@tonic-gate		restart_on='none'
497c478bd9Sstevel@tonic-gate		type='service'>
507c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/sysconfig' />
517c478bd9Sstevel@tonic-gate	</dependency>
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gate	<!--
54*bbf21555SRichard Lowe	  syslogd(8) can log to non-root local directories.
557c478bd9Sstevel@tonic-gate	-->
567c478bd9Sstevel@tonic-gate	<dependency
577c478bd9Sstevel@tonic-gate		name='filesystem'
587c478bd9Sstevel@tonic-gate		grouping='require_all'
597c478bd9Sstevel@tonic-gate		restart_on='none'
607c478bd9Sstevel@tonic-gate		type='service'>
617c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/filesystem/local' />
627c478bd9Sstevel@tonic-gate	</dependency>
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gate	<!--
65*bbf21555SRichard Lowe	  syslogd(8) can log to automounted files.
667c478bd9Sstevel@tonic-gate	-->
677c478bd9Sstevel@tonic-gate	<dependency
687c478bd9Sstevel@tonic-gate		name='autofs'
697c478bd9Sstevel@tonic-gate		grouping='optional_all'
707c478bd9Sstevel@tonic-gate		restart_on='none'
717c478bd9Sstevel@tonic-gate		type='service'>
727c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/filesystem/autofs' />
737c478bd9Sstevel@tonic-gate	</dependency>
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate	<!--
76*bbf21555SRichard Lowe	  syslogd(8) needs nameservice resolution to log to remote hosts.
777c478bd9Sstevel@tonic-gate	-->
787c478bd9Sstevel@tonic-gate	<dependency
797c478bd9Sstevel@tonic-gate		name='name-services'
807c478bd9Sstevel@tonic-gate		grouping='require_all'
817c478bd9Sstevel@tonic-gate		restart_on='none'
827c478bd9Sstevel@tonic-gate		type='service'>
837c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/name-services' />
847c478bd9Sstevel@tonic-gate	</dependency>
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gate	<dependent
877c478bd9Sstevel@tonic-gate		name='system-log_single-user'
887c478bd9Sstevel@tonic-gate		grouping='optional_all'
897c478bd9Sstevel@tonic-gate		restart_on='none'>
907c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/multi-user' />
917c478bd9Sstevel@tonic-gate	</dependent>
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gate	<!--
947c478bd9Sstevel@tonic-gate		The system-log start method includes a "savecore -m".
957c478bd9Sstevel@tonic-gate		Use an appropriately long timeout value.
967c478bd9Sstevel@tonic-gate	-->
977c478bd9Sstevel@tonic-gate	<exec_method
987c478bd9Sstevel@tonic-gate		type='method'
997c478bd9Sstevel@tonic-gate		name='start'
1007c478bd9Sstevel@tonic-gate		exec='/lib/svc/method/system-log'
1017c478bd9Sstevel@tonic-gate		timeout_seconds='600' />
1027c478bd9Sstevel@tonic-gate
1037c478bd9Sstevel@tonic-gate	<exec_method
1047c478bd9Sstevel@tonic-gate		type='method'
1057c478bd9Sstevel@tonic-gate		name='stop'
1067c478bd9Sstevel@tonic-gate		exec=':kill'
1077c478bd9Sstevel@tonic-gate		timeout_seconds='60' />
1087c478bd9Sstevel@tonic-gate
1097c478bd9Sstevel@tonic-gate	<exec_method
1107c478bd9Sstevel@tonic-gate		type='method'
1117c478bd9Sstevel@tonic-gate		name='refresh'
1127c478bd9Sstevel@tonic-gate		exec=':kill -HUP'
1137c478bd9Sstevel@tonic-gate		timeout_seconds='60' />
1147c478bd9Sstevel@tonic-gate
1157c478bd9Sstevel@tonic-gate	<property_group name='general' type='framework'>
1167c478bd9Sstevel@tonic-gate		<!-- to start stop syslog daemon -->
1177c478bd9Sstevel@tonic-gate		<propval name='action_authorization' type='astring'
1187c478bd9Sstevel@tonic-gate			value='solaris.smf.manage.system-log' />
1197c478bd9Sstevel@tonic-gate	</property_group>
1207c478bd9Sstevel@tonic-gate
1210ea5e3a5Sjjj	<property_group name='config' type='application'>
122*bbf21555SRichard Lowe		<!-- default property settings for syslogd(8) -->
1230ea5e3a5Sjjj
1240ea5e3a5Sjjj		<!-- Specifies whether remote messages are logged.
1250ea5e3a5Sjjj		     log_from_remote=false is equivalent to the -t
126878f29a1Sgww		     command-line option. log_from_remote=true
127878f29a1Sgww		     is equivalent to the -T command-line option.
1280ea5e3a5Sjjj		-->
1290ea5e3a5Sjjj		<propval
1300ea5e3a5Sjjj			name='log_from_remote'
1310ea5e3a5Sjjj			type='boolean'
132ed1b5e11Sgww			value='false' />
1330ea5e3a5Sjjj
1340ea5e3a5Sjjj		<!-- authorization to modify the configuration properties -->
1350ea5e3a5Sjjj		<propval name='value_authorization' type='astring'
1360ea5e3a5Sjjj			value='solaris.smf.value.system-log' />
1370ea5e3a5Sjjj	</property_group>
1380ea5e3a5Sjjj
139eb1a3463STruong Nguyen	<property_group name='firewall_context' type='com.sun,fw_definition'>
140eb1a3463STruong Nguyen		<propval name='name' type='astring' value='syslog' />
141eb1a3463STruong Nguyen	</property_group>
142eb1a3463STruong Nguyen
143eb1a3463STruong Nguyen	<property_group name='firewall_config' type='com.sun,fw_configuration'>
144eb1a3463STruong Nguyen		<propval name='policy' type='astring' value='use_global' />
1457ddce999SHans Rosenfeld		<propval name='block_policy' type='astring'
1467ddce999SHans Rosenfeld			value='use_global' />
147eb1a3463STruong Nguyen		<propval name='apply_to' type='astring' value='' />
1487ddce999SHans Rosenfeld		<propval name='apply_to_6' type='astring' value='' />
149eb1a3463STruong Nguyen		<propval name='exceptions' type='astring' value='' />
1507ddce999SHans Rosenfeld		<propval name='exceptions_6' type='astring' value='' />
1517ddce999SHans Rosenfeld		<propval name='target' type='astring' value='' />
1527ddce999SHans Rosenfeld		<propval name='target_6' type='astring' value='' />
153eb1a3463STruong Nguyen		<propval name='value_authorization' type='astring'
154eb1a3463STruong Nguyen			value='solaris.smf.value.firewall.config' />
155eb1a3463STruong Nguyen	</property_group>
156eb1a3463STruong Nguyen
1577c478bd9Sstevel@tonic-gate	<stability value='Unstable' />
1587c478bd9Sstevel@tonic-gate
1597c478bd9Sstevel@tonic-gate	<template>
1607c478bd9Sstevel@tonic-gate		<common_name>
1617c478bd9Sstevel@tonic-gate			<loctext xml:lang='C'> system log
1627c478bd9Sstevel@tonic-gate			</loctext>
1637c478bd9Sstevel@tonic-gate		</common_name>
1647c478bd9Sstevel@tonic-gate		<documentation>
165*bbf21555SRichard Lowe			<manpage title='syslogd' section='8'
1667c478bd9Sstevel@tonic-gate				manpath='/usr/share/man' />
1677c478bd9Sstevel@tonic-gate		</documentation>
1687c478bd9Sstevel@tonic-gate	</template>
1697c478bd9Sstevel@tonic-gate</service>
1707c478bd9Sstevel@tonic-gate
1717c478bd9Sstevel@tonic-gate</service_bundle>
172