svc-hotplug revision 269473047d747f7815af570197e4ef7322d3632c
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# CDDL HEADER START
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# The contents of this file are subject to the terms of the
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# Common Development and Distribution License (the "License").
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# You may not use this file except in compliance with the License.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# See the License for the specific language governing permissions
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# and limitations under the License.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# When distributing Covered Code, include this CDDL HEADER in each
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# If applicable, add the following below this CDDL HEADER, with the
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# fields enclosed by brackets "[]" replaced with your own identifying
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# information: Portions Copyright [yyyy] [name of copyright owner]
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# CDDL HEADER END
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# Use is subject to license terms.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# Startup script for the hotplugd(1M) daemon.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# The hotplug service is only supported in the global zone.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross echo "$SMF_FMRI is not supported in a local zone"
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# If a hotplug door exists, check for a hotplugd process and exit
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross# if the daemon is already running.
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross if /usr/bin/pgrep -x -u 0 hotplugd >/dev/null 2>&1; then
b3700b074e637f8c6991b70754c88a2cfffb246bGordon Ross echo "$0: hotplugd is already running"