svc-utmpd revision 6927f468b0af7710df000f6b16f6ee413e1e3007
2532433e80d73506f7bcc18bd0dab686f1c39397minfrin# CDDL HEADER START
2532433e80d73506f7bcc18bd0dab686f1c39397minfrin# The contents of this file are subject to the terms of the
2532433e80d73506f7bcc18bd0dab686f1c39397minfrin# Common Development and Distribution License (the "License").
c148bc6b4eea544af816783400362f741c5f5fc2trawick# You may not use this file except in compliance with the License.
c148bc6b4eea544af816783400362f741c5f5fc2trawick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9d432e23f6025b78322cbee43e8e89262a108e5eaaron# See the License for the specific language governing permissions
9d432e23f6025b78322cbee43e8e89262a108e5eaaron# and limitations under the License.
9d432e23f6025b78322cbee43e8e89262a108e5eaaron# When distributing Covered Code, include this CDDL HEADER in each
9d432e23f6025b78322cbee43e8e89262a108e5eaaron# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9d432e23f6025b78322cbee43e8e89262a108e5eaaron# If applicable, add the following below this CDDL HEADER, with the
6a5bdbbacf4a62adecde52b8f23ebcc4fa2a08b8trawick# fields enclosed by brackets "[]" replaced with your own identifying
6a5bdbbacf4a62adecde52b8f23ebcc4fa2a08b8trawick# information: Portions Copyright [yyyy] [name of copyright owner]
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin# CDDL HEADER END
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
b4e4d76bf454e1b603b410110356dbcf12f3bc42jim# Use is subject to license terms.
b4e4d76bf454e1b603b410110356dbcf12f3bc42jim# ident "%Z%%M% %I% %E% SMI"
2864362ca8266097928e84f101010bdf814ffa08stoddard# If a utmppipe exists, check for a utmpd process and exit
2864362ca8266097928e84f101010bdf814ffa08stoddard# if the daemon is already running.
2864362ca8266097928e84f101010bdf814ffa08stoddard if /usr/bin/pgrep -x -u 0 -z `smf_zonename` utmpd >/dev/null 2>&1; then
f51dbb1f5b66d94b5c190bfcd444aa73bdc2b176trawick echo "$0: utmpd is already running"