svc-consadm revision 7c478bd95313f5f23a4c958a745db2134aa03244
330c042543440d0987244c94c65d14eeb7af0868rbb#!/bin/sh
962f339c5f0f61adde79936f610fb05ce0854d6echuck#
a1033a770bfee276def7d4cb9759856f69293e48trawick# CDDL HEADER START
a1033a770bfee276def7d4cb9759856f69293e48trawick#
a1033a770bfee276def7d4cb9759856f69293e48trawick# The contents of this file are subject to the terms of the
a1033a770bfee276def7d4cb9759856f69293e48trawick# Common Development and Distribution License, Version 1.0 only
bd2d582e0f0708b6e8e258a9a5f9a15445752087trawick# (the "License"). You may not use this file except in compliance
bd2d582e0f0708b6e8e258a9a5f9a15445752087trawick# with the License.
bd2d582e0f0708b6e8e258a9a5f9a15445752087trawick#
adb8ad10ffc20ed06ec6cfab6cd7933ab429ea7dtrawick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
adb8ad10ffc20ed06ec6cfab6cd7933ab429ea7dtrawick# or http://www.opensolaris.org/os/licensing.
adb8ad10ffc20ed06ec6cfab6cd7933ab429ea7dtrawick# See the License for the specific language governing permissions
b45c1c292ff1fa635004ae81fa691f8cb3cdda85rbb# and limitations under the License.
b45c1c292ff1fa635004ae81fa691f8cb3cdda85rbb#
b45c1c292ff1fa635004ae81fa691f8cb3cdda85rbb# When distributing Covered Code, include this CDDL HEADER in each
b45c1c292ff1fa635004ae81fa691f8cb3cdda85rbb# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b45c1c292ff1fa635004ae81fa691f8cb3cdda85rbb# If applicable, add the following below this CDDL HEADER, with the
b45c1c292ff1fa635004ae81fa691f8cb3cdda85rbb# fields enclosed by brackets "[]" replaced with your own identifying
b45c1c292ff1fa635004ae81fa691f8cb3cdda85rbb# information: Portions Copyright [yyyy] [name of copyright owner]
86f191e8221867df8c9cd22271e7d54204f39186rbb#
86f191e8221867df8c9cd22271e7d54204f39186rbb# CDDL HEADER END
86f191e8221867df8c9cd22271e7d54204f39186rbb#
86f191e8221867df8c9cd22271e7d54204f39186rbb#
86f191e8221867df8c9cd22271e7d54204f39186rbb# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
962f339c5f0f61adde79936f610fb05ce0854d6echuck# Use is subject to license terms.
962f339c5f0f61adde79936f610fb05ce0854d6echuck#
962f339c5f0f61adde79936f610fb05ce0854d6echuck# ident "%Z%%M% %I% %E% SMI"
157e6980a24a44e4719173b1c555133caecbc172stoddard
157e6980a24a44e4719173b1c555133caecbc172stoddard#
157e6980a24a44e4719173b1c555133caecbc172stoddard# "Start" the "consadm service" by launching consadmd if /etc/consadm.conf
157e6980a24a44e4719173b1c555133caecbc172stoddard# exists.
faa6e5d8b210456ae4dad0398dfa40a19fd89d59coar#
171f8c636ff1374e3a3dfff333211becda355b98trawick# Note that these strings are hardcoded into consadm, so there's no benefit to
171f8c636ff1374e3a3dfff333211becda355b98trawick# keeping them in the repository.
171f8c636ff1374e3a3dfff333211becda355b98trawick#
171f8c636ff1374e3a3dfff333211becda355b98trawick
171f8c636ff1374e3a3dfff333211becda355b98trawick. /lib/svc/share/smf_include.sh
171f8c636ff1374e3a3dfff333211becda355b98trawick
faa6e5d8b210456ae4dad0398dfa40a19fd89d59coarif [ -r /etc/consadm.conf ]; then :; else
faa6e5d8b210456ae4dad0398dfa40a19fd89d59coar echo "No /etc/consadm.conf"
faa6e5d8b210456ae4dad0398dfa40a19fd89d59coar exit $SMF_EXIT_ERR_CONFIG
faa6e5d8b210456ae4dad0398dfa40a19fd89d59coarfi
ed105ee460bbaf479f0aa0f59d3951da85066e27stoddard
ed105ee460bbaf479f0aa0f59d3951da85066e27stoddard/usr/sbin/consadmd &
ed105ee460bbaf479f0aa0f59d3951da85066e27stoddard
ed105ee460bbaf479f0aa0f59d3951da85066e27stoddardexit 0
ed105ee460bbaf479f0aa0f59d3951da85066e27stoddard