xref: /onnv-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/inetd-upgrade.xml (revision 5514:119b1c87d85e)
10Sstevel@tonic-gate<?xml version="1.0"?>
20Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
30Sstevel@tonic-gate<!--
4*5514Smh138676 Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
50Sstevel@tonic-gate Use is subject to license terms.
60Sstevel@tonic-gate
70Sstevel@tonic-gate CDDL HEADER START
80Sstevel@tonic-gate
90Sstevel@tonic-gate The contents of this file are subject to the terms of the
10*5514Smh138676 Common Development and Distribution License (the "License").
11*5514Smh138676 You may not use this file except in compliance with the License.
120Sstevel@tonic-gate
130Sstevel@tonic-gate You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
140Sstevel@tonic-gate or http://www.opensolaris.org/os/licensing.
150Sstevel@tonic-gate See the License for the specific language governing permissions
160Sstevel@tonic-gate and limitations under the License.
170Sstevel@tonic-gate
180Sstevel@tonic-gate When distributing Covered Code, include this CDDL HEADER in each
190Sstevel@tonic-gate file and include the License file at usr/src/OPENSOLARIS.LICENSE.
200Sstevel@tonic-gate If applicable, add the following below this CDDL HEADER, with the
210Sstevel@tonic-gate fields enclosed by brackets "[]" replaced with your own identifying
220Sstevel@tonic-gate information: Portions Copyright [yyyy] [name of copyright owner]
230Sstevel@tonic-gate
240Sstevel@tonic-gate CDDL HEADER END
250Sstevel@tonic-gate
260Sstevel@tonic-gate	ident	"%Z%%M%	%I%	%E% SMI"
270Sstevel@tonic-gate
280Sstevel@tonic-gate	NOTE:  This service manifest is not editable; its contents will
290Sstevel@tonic-gate	be overwritten by package or patch operations, including
300Sstevel@tonic-gate	operating system upgrade.  Make customizations in a different
310Sstevel@tonic-gate	file.
320Sstevel@tonic-gate
330Sstevel@tonic-gate	Service manifest for the inetd upgrade service.
340Sstevel@tonic-gate-->
350Sstevel@tonic-gate
360Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWcsr:inetd-upgrade'>
370Sstevel@tonic-gate
380Sstevel@tonic-gate<service
390Sstevel@tonic-gate	name='network/inetd-upgrade'
400Sstevel@tonic-gate	type='service'
410Sstevel@tonic-gate	version='1'>
420Sstevel@tonic-gate
430Sstevel@tonic-gate	<create_default_instance enabled='true' />
440Sstevel@tonic-gate
450Sstevel@tonic-gate	<single_instance />
460Sstevel@tonic-gate
470Sstevel@tonic-gate	<dependency
480Sstevel@tonic-gate		name='network'
490Sstevel@tonic-gate		grouping='require_all'
500Sstevel@tonic-gate		restart_on='error'
510Sstevel@tonic-gate		type='service'
520Sstevel@tonic-gate		delete='true'>
530Sstevel@tonic-gate		<service_fmri value='svc:/network/inetd'/>
540Sstevel@tonic-gate	</dependency>
550Sstevel@tonic-gate
560Sstevel@tonic-gate	<dependency
570Sstevel@tonic-gate		name='filesystem'
580Sstevel@tonic-gate		grouping='require_all'
590Sstevel@tonic-gate		restart_on='none'
600Sstevel@tonic-gate		type='service'>
610Sstevel@tonic-gate		<service_fmri value='svc:/system/filesystem/local'/>
620Sstevel@tonic-gate	</dependency>
630Sstevel@tonic-gate
64*5514Smh138676	<dependency
65*5514Smh138676		name='name-services'
66*5514Smh138676		grouping='require_all'
67*5514Smh138676		restart_on='none'
68*5514Smh138676		type='service'>
69*5514Smh138676		<service_fmri value='svc:/milestone/name-services'/>
70*5514Smh138676	</dependency>
71*5514Smh138676
720Sstevel@tonic-gate	<exec_method
730Sstevel@tonic-gate		type='method'
740Sstevel@tonic-gate		name='stop'
750Sstevel@tonic-gate		exec=':true'
760Sstevel@tonic-gate		timeout_seconds='60' >
770Sstevel@tonic-gate	</exec_method>
780Sstevel@tonic-gate
790Sstevel@tonic-gate	<exec_method
800Sstevel@tonic-gate		type='method'
810Sstevel@tonic-gate		name='start'
820Sstevel@tonic-gate		exec='/lib/svc/method/inetd-upgrade %m'
830Sstevel@tonic-gate		timeout_seconds='120' >
840Sstevel@tonic-gate	</exec_method>
850Sstevel@tonic-gate
860Sstevel@tonic-gate	<property_group
870Sstevel@tonic-gate		name='startd'
880Sstevel@tonic-gate		type='framework'>
890Sstevel@tonic-gate		<propval name='duration' type='astring' value='transient' />
900Sstevel@tonic-gate	</property_group>
910Sstevel@tonic-gate
920Sstevel@tonic-gate	<stability value='Unstable' />
930Sstevel@tonic-gate
940Sstevel@tonic-gate	<template>
950Sstevel@tonic-gate		<common_name>
960Sstevel@tonic-gate			<loctext xml:lang='C'>inetd-upgrade</loctext>
970Sstevel@tonic-gate		</common_name>
980Sstevel@tonic-gate		<description>
990Sstevel@tonic-gate			<loctext xml:lang='C'>
1000Sstevel@tonic-gateinetd-upgrade handles the upgrade of old inetd.conf entries to SMF service instances.
1010Sstevel@tonic-gate			</loctext>
1020Sstevel@tonic-gate		</description>
1030Sstevel@tonic-gate		<documentation>
1040Sstevel@tonic-gate			<manpage title='inetd' section='1M'
1050Sstevel@tonic-gate				manpath='/usr/share/man' />
1060Sstevel@tonic-gate		</documentation>
1070Sstevel@tonic-gate	</template>
1080Sstevel@tonic-gate</service>
1090Sstevel@tonic-gate
1100Sstevel@tonic-gate</service_bundle>
111