1<?xml version="1.0"?> 2<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> 3<!-- 4 Copyright 2005 Sun Microsystems, Inc. All rights reserved. 5 Use is subject to license terms. 6 7 CDDL HEADER START 8 9 The contents of this file are subject to the terms of the 10 Common Development and Distribution License, Version 1.0 only 11 (the "License"). You may not use this file except in compliance 12 with the License. 13 14 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 15 or http://www.opensolaris.org/os/licensing. 16 See the License for the specific language governing permissions 17 and limitations under the License. 18 19 When distributing Covered Code, include this CDDL HEADER in each 20 file and include the License file at usr/src/OPENSOLARIS.LICENSE. 21 If applicable, add the following below this CDDL HEADER, with the 22 fields enclosed by brackets "[]" replaced with your own identifying 23 information: Portions Copyright [yyyy] [name of copyright owner] 24 25 CDDL HEADER END 26 27 ident "%Z%%M% %I% %E% SMI" 28 29 NOTE: This service manifest is not editable; its contents will 30 be overwritten by package or patch operations, including 31 operating system upgrade. Make customizations in a different 32 file. 33--> 34 35<service_bundle type='manifest' name='SUNWcsr:syslog'> 36 37<service 38 name='system/system-log' 39 type='service' 40 version='1'> 41 42 <create_default_instance enabled='false' /> 43 44 <single_instance/> 45 46 <dependency 47 name='milestone' 48 grouping='require_all' 49 restart_on='none' 50 type='service'> 51 <service_fmri value='svc:/milestone/sysconfig' /> 52 </dependency> 53 54 <!-- 55 syslogd(1M) can log to non-root local directories. 56 --> 57 <dependency 58 name='filesystem' 59 grouping='require_all' 60 restart_on='none' 61 type='service'> 62 <service_fmri value='svc:/system/filesystem/local' /> 63 </dependency> 64 65 <!-- 66 syslogd(1M) can log to automounted files. 67 --> 68 <dependency 69 name='autofs' 70 grouping='optional_all' 71 restart_on='none' 72 type='service'> 73 <service_fmri value='svc:/system/filesystem/autofs' /> 74 </dependency> 75 76 <!-- 77 syslogd(1M) needs nameservice resolution to log to remote hosts. 78 --> 79 <dependency 80 name='name-services' 81 grouping='require_all' 82 restart_on='none' 83 type='service'> 84 <service_fmri value='svc:/milestone/name-services' /> 85 </dependency> 86 87 <dependent 88 name='system-log_single-user' 89 grouping='optional_all' 90 restart_on='none'> 91 <service_fmri value='svc:/milestone/multi-user' /> 92 </dependent> 93 94 <!-- 95 The system-log start method includes a "savecore -m". 96 Use an appropriately long timeout value. 97 --> 98 <exec_method 99 type='method' 100 name='start' 101 exec='/lib/svc/method/system-log' 102 timeout_seconds='600' /> 103 104 <exec_method 105 type='method' 106 name='stop' 107 exec=':kill' 108 timeout_seconds='60' /> 109 110 <exec_method 111 type='method' 112 name='refresh' 113 exec=':kill -HUP' 114 timeout_seconds='60' /> 115 116 <property_group name='general' type='framework'> 117 <!-- to start stop syslog daemon --> 118 <propval name='action_authorization' type='astring' 119 value='solaris.smf.manage.system-log' /> 120 </property_group> 121 122 <stability value='Unstable' /> 123 124 <template> 125 <common_name> 126 <loctext xml:lang='C'> system log 127 </loctext> 128 </common_name> 129 <documentation> 130 <manpage title='syslogd' section='1M' 131 manpath='/usr/share/man' /> 132 </documentation> 133 </template> 134</service> 135 136</service_bundle> 137