xref: /illumos-gate/usr/src/cmd/nscd/name-service-cache.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<!--
4cb5caa98Sdjl Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
57c478bd9Sstevel@tonic-gate Use is subject to license terms.
67c478bd9Sstevel@tonic-gate
77c478bd9Sstevel@tonic-gate CDDL HEADER START
87c478bd9Sstevel@tonic-gate
97c478bd9Sstevel@tonic-gate The contents of this file are subject to the terms of the
10cb5caa98Sdjl Common Development and Distribution License (the "License").
11cb5caa98Sdjl You may not use this file except in compliance with the License.
127c478bd9Sstevel@tonic-gate
137c478bd9Sstevel@tonic-gate You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
147c478bd9Sstevel@tonic-gate or http://www.opensolaris.org/os/licensing.
157c478bd9Sstevel@tonic-gate See the License for the specific language governing permissions
167c478bd9Sstevel@tonic-gate and limitations under the License.
177c478bd9Sstevel@tonic-gate
187c478bd9Sstevel@tonic-gate When distributing Covered Code, include this CDDL HEADER in each
197c478bd9Sstevel@tonic-gate file and include the License file at usr/src/OPENSOLARIS.LICENSE.
207c478bd9Sstevel@tonic-gate If applicable, add the following below this CDDL HEADER, with the
217c478bd9Sstevel@tonic-gate fields enclosed by brackets "[]" replaced with your own identifying
227c478bd9Sstevel@tonic-gate information: Portions Copyright [yyyy] [name of copyright owner]
237c478bd9Sstevel@tonic-gate
247c478bd9Sstevel@tonic-gate CDDL HEADER END
257c478bd9Sstevel@tonic-gate
267c478bd9Sstevel@tonic-gate	NOTE:  This service manifest is not editable; its contents will
277c478bd9Sstevel@tonic-gate	be overwritten by package or patch operations, including
287c478bd9Sstevel@tonic-gate	operating system upgrade.  Make customizations in a different
297c478bd9Sstevel@tonic-gate	file.
307c478bd9Sstevel@tonic-gate-->
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWcsr:nscd'>
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gate<service
357c478bd9Sstevel@tonic-gate	name='system/name-service-cache'
367c478bd9Sstevel@tonic-gate	type='service'
377c478bd9Sstevel@tonic-gate	version='1'>
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gate	<create_default_instance enabled='false' />
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gate	<single_instance />
427c478bd9Sstevel@tonic-gate
437c478bd9Sstevel@tonic-gate	<dependency
447c478bd9Sstevel@tonic-gate		name='config_data'
457c478bd9Sstevel@tonic-gate		grouping='require_all'
467c478bd9Sstevel@tonic-gate		restart_on='restart'
477c478bd9Sstevel@tonic-gate		type='path'>
487c478bd9Sstevel@tonic-gate		<service_fmri value='file://localhost/etc/nscd.conf' />
497c478bd9Sstevel@tonic-gate		<service_fmri value='file://localhost/etc/nsswitch.conf' />
507c478bd9Sstevel@tonic-gate	</dependency>
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate	<!-- nscd needs to create /var/run/name_service_door -->
537c478bd9Sstevel@tonic-gate	<dependency
547c478bd9Sstevel@tonic-gate		name='filesystem'
557c478bd9Sstevel@tonic-gate		grouping='require_all'
567c478bd9Sstevel@tonic-gate		restart_on='none'
577c478bd9Sstevel@tonic-gate		type='service'>
587c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/filesystem/minimal' />
597c478bd9Sstevel@tonic-gate	</dependency>
607c478bd9Sstevel@tonic-gate
617c478bd9Sstevel@tonic-gate	<dependent
627c478bd9Sstevel@tonic-gate		name='name-service-cache_multi-user'
637c478bd9Sstevel@tonic-gate		grouping='optional_all'
647c478bd9Sstevel@tonic-gate		restart_on='none'>
657c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/multi-user' />
667c478bd9Sstevel@tonic-gate	</dependent>
677c478bd9Sstevel@tonic-gate
687c478bd9Sstevel@tonic-gate	<exec_method
697c478bd9Sstevel@tonic-gate		type='method'
707c478bd9Sstevel@tonic-gate		name='start'
717c478bd9Sstevel@tonic-gate		exec='/lib/svc/method/svc-nscd'
727c478bd9Sstevel@tonic-gate		timeout_seconds='60' />
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gate	<exec_method
757c478bd9Sstevel@tonic-gate		type='method'
767c478bd9Sstevel@tonic-gate		name='stop'
777c478bd9Sstevel@tonic-gate		exec=':kill'
787c478bd9Sstevel@tonic-gate		timeout_seconds='60' />
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gate	<property_group name='general' type='framework'>
817c478bd9Sstevel@tonic-gate		<!-- to start stop nscd -->
827c478bd9Sstevel@tonic-gate		<propval name='action_authorization' type='astring'
837c478bd9Sstevel@tonic-gate			value='solaris.smf.manage.name-service-cache' />
847c478bd9Sstevel@tonic-gate	</property_group>
857c478bd9Sstevel@tonic-gate
86cb5caa98Sdjl	<property_group name='config' type='application' >
87cb5caa98Sdjl		<propval
88cb5caa98Sdjl			name='enable_per_user_lookup'
89cb5caa98Sdjl			type='boolean'
90cb5caa98Sdjl			value='true' />
91cb5caa98Sdjl		<propval
92cb5caa98Sdjl			name='per_user_nscd_time_to_live'
93cb5caa98Sdjl			type='integer'
94cb5caa98Sdjl			value='120' />
95cb5caa98Sdjl	</property_group>
96cb5caa98Sdjl
97cb5caa98Sdjl
987c478bd9Sstevel@tonic-gate
997c478bd9Sstevel@tonic-gate	<stability value='Unstable' />
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gate	<template>
1027c478bd9Sstevel@tonic-gate		<common_name>
1037c478bd9Sstevel@tonic-gate			<loctext xml:lang='C'>
1047c478bd9Sstevel@tonic-gate			name service cache
1057c478bd9Sstevel@tonic-gate			</loctext>
1067c478bd9Sstevel@tonic-gate		</common_name>
1077c478bd9Sstevel@tonic-gate		<documentation>
108*bbf21555SRichard Lowe			<manpage title='nscd' section='8' manpath='/usr/share/man' />
1097c478bd9Sstevel@tonic-gate		</documentation>
1107c478bd9Sstevel@tonic-gate	</template>
1117c478bd9Sstevel@tonic-gate
1127c478bd9Sstevel@tonic-gate</service>
1137c478bd9Sstevel@tonic-gate
1147c478bd9Sstevel@tonic-gate</service_bundle>
115