17c478bd9Sstevel@tonic-gate#!/sbin/sh 27c478bd9Sstevel@tonic-gate# 37c478bd9Sstevel@tonic-gate# CDDL HEADER START 47c478bd9Sstevel@tonic-gate# 57c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 6*fea9cb91Slq150181# Common Development and Distribution License (the "License"). 7*fea9cb91Slq150181# You may not use this file except in compliance with the License. 87c478bd9Sstevel@tonic-gate# 97c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 107c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 117c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 127c478bd9Sstevel@tonic-gate# and limitations under the License. 137c478bd9Sstevel@tonic-gate# 147c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 157c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 167c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 177c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 187c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 197c478bd9Sstevel@tonic-gate# 207c478bd9Sstevel@tonic-gate# CDDL HEADER END 217c478bd9Sstevel@tonic-gate# 22*fea9cb91Slq150181 237c478bd9Sstevel@tonic-gate# 24*fea9cb91Slq150181# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 257c478bd9Sstevel@tonic-gate# Use is subject to license terms. 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gatecat >console-login.xml <<EOF 307c478bd9Sstevel@tonic-gate<?xml version="1.0"?> 317c478bd9Sstevel@tonic-gate<!-- 32*fea9cb91Slq150181 Copyright 2006 Sun Microsystems, Inc. All rights reserved. 337c478bd9Sstevel@tonic-gate Use is subject to license terms. 347c478bd9Sstevel@tonic-gate 357c478bd9Sstevel@tonic-gate ident "%Z%%M% %I% %E% SMI" 367c478bd9Sstevel@tonic-gate 377c478bd9Sstevel@tonic-gate NOTE: This service manifest is not editable; its contents will 387c478bd9Sstevel@tonic-gate be overwritten by package or patch operations, including 397c478bd9Sstevel@tonic-gate operating system upgrade. Make customizations in a different 407c478bd9Sstevel@tonic-gate file. 417c478bd9Sstevel@tonic-gate--> 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWcsr:console'> 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gate<service 487c478bd9Sstevel@tonic-gate name='system/console-login' 497c478bd9Sstevel@tonic-gate type='service' 507c478bd9Sstevel@tonic-gate version='1'> 517c478bd9Sstevel@tonic-gate 527c478bd9Sstevel@tonic-gate <create_default_instance enabled='true' /> 537c478bd9Sstevel@tonic-gate 547c478bd9Sstevel@tonic-gate <single_instance/> 557c478bd9Sstevel@tonic-gate 567c478bd9Sstevel@tonic-gate <dependency 577c478bd9Sstevel@tonic-gate name='fs' 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/minimal' /> 627c478bd9Sstevel@tonic-gate </dependency> 637c478bd9Sstevel@tonic-gate 647c478bd9Sstevel@tonic-gate <dependency 657c478bd9Sstevel@tonic-gate name='identity' 667c478bd9Sstevel@tonic-gate grouping='require_all' 677c478bd9Sstevel@tonic-gate restart_on='none' 687c478bd9Sstevel@tonic-gate type='service'> 697c478bd9Sstevel@tonic-gate <service_fmri value='svc:/system/identity:node' /> 707c478bd9Sstevel@tonic-gate </dependency> 717c478bd9Sstevel@tonic-gate 727c478bd9Sstevel@tonic-gate <dependency 737c478bd9Sstevel@tonic-gate name='utmpx' 747c478bd9Sstevel@tonic-gate grouping='require_all' 757c478bd9Sstevel@tonic-gate restart_on='none' 767c478bd9Sstevel@tonic-gate type='service'> 777c478bd9Sstevel@tonic-gate <service_fmri value='svc:/system/utmp:default' /> 787c478bd9Sstevel@tonic-gate </dependency> 797c478bd9Sstevel@tonic-gate 807c478bd9Sstevel@tonic-gate <!-- Note that console-login should be dependent on any services 817c478bd9Sstevel@tonic-gate that may need to use the console. This requirement can be met 827c478bd9Sstevel@tonic-gate by establishing a dependency on milestone/sysconfig which, 837c478bd9Sstevel@tonic-gate among other things, collects such dependencies. 847c478bd9Sstevel@tonic-gate --> 857c478bd9Sstevel@tonic-gate <dependency 867c478bd9Sstevel@tonic-gate name='sysconfig' 877c478bd9Sstevel@tonic-gate grouping='require_all' 887c478bd9Sstevel@tonic-gate restart_on='none' 897c478bd9Sstevel@tonic-gate type='service'> 907c478bd9Sstevel@tonic-gate <service_fmri value='svc:/milestone/sysconfig' /> 917c478bd9Sstevel@tonic-gate </dependency> 927c478bd9Sstevel@tonic-gate 937c478bd9Sstevel@tonic-gate <exec_method 947c478bd9Sstevel@tonic-gate type='method' 957c478bd9Sstevel@tonic-gate name='start' 967c478bd9Sstevel@tonic-gate exec='/lib/svc/method/console-login' 977c478bd9Sstevel@tonic-gate timeout_seconds='0' /> 987c478bd9Sstevel@tonic-gate 997c478bd9Sstevel@tonic-gate <exec_method 1007c478bd9Sstevel@tonic-gate type='method' 1017c478bd9Sstevel@tonic-gate name='stop' 1027c478bd9Sstevel@tonic-gate exec=':kill -9' 1037c478bd9Sstevel@tonic-gate timeout_seconds='3' /> 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gate <property_group name='startd' type='framework'> 1067c478bd9Sstevel@tonic-gate <propval name='duration' type='astring' value='child' /> 1077c478bd9Sstevel@tonic-gate <propval name='ignore_error' type='astring' 1087c478bd9Sstevel@tonic-gate value='core,signal' /> 1097c478bd9Sstevel@tonic-gate <propval name='utmpx_prefix' type='astring' value='co' /> 1107c478bd9Sstevel@tonic-gate </property_group> 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gate <!-- these are passed to ttymon in the method script --> 1137c478bd9Sstevel@tonic-gate <property_group name='ttymon' type='application'> 1147c478bd9Sstevel@tonic-gate <propval name='device' type='astring' value='/dev/console' /> 1157c478bd9Sstevel@tonic-gate <propval name='label' type='astring' value='console' /> 1167c478bd9Sstevel@tonic-gate <propval name='timeout' type='count' value='0' /> 1177c478bd9Sstevel@tonic-gate <propval name='nohangup' type='boolean' value='true' /> 1187c478bd9Sstevel@tonic-gate <propval name='modules' type='astring' 1197c478bd9Sstevel@tonic-gate value='ldterm,ttcompat' /> 1207c478bd9Sstevel@tonic-gate <propval name='prompt' type='astring' 1217c478bd9Sstevel@tonic-gate value='\`uname -n\` console login:' /> 1227c478bd9Sstevel@tonic-gate <propval name='terminal_type' type='astring' 123*fea9cb91Slq150181 value='' /> 1247c478bd9Sstevel@tonic-gate </property_group> 1257c478bd9Sstevel@tonic-gate 1267c478bd9Sstevel@tonic-gate <stability value='Evolving' /> 1277c478bd9Sstevel@tonic-gate 1287c478bd9Sstevel@tonic-gate <template> 1297c478bd9Sstevel@tonic-gate <common_name> 1307c478bd9Sstevel@tonic-gate <loctext xml:lang='C'> 1317c478bd9Sstevel@tonic-gateConsole login 1327c478bd9Sstevel@tonic-gate </loctext> 1337c478bd9Sstevel@tonic-gate </common_name> 1347c478bd9Sstevel@tonic-gate <documentation> 1357c478bd9Sstevel@tonic-gate <manpage title='ttymon' section='1M' 1367c478bd9Sstevel@tonic-gate manpath='/usr/share/man' /> 1377c478bd9Sstevel@tonic-gate </documentation> 1387c478bd9Sstevel@tonic-gate </template> 1397c478bd9Sstevel@tonic-gate</service> 1407c478bd9Sstevel@tonic-gate 1417c478bd9Sstevel@tonic-gate</service_bundle> 1427c478bd9Sstevel@tonic-gateEOF 143