svc-utmpd revision 6927f468b0af7710df000f6b16f6ee413e1e3007
3a9c3ec5357b36fc34766cb8166168311af3562frbb#!/sbin/sh
71f891073f6fa0209870791f64cbbf28d77ffdc1brianp#
2532433e80d73506f7bcc18bd0dab686f1c39397minfrin# CDDL HEADER START
2532433e80d73506f7bcc18bd0dab686f1c39397minfrin#
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#
c148bc6b4eea544af816783400362f741c5f5fc2trawick# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9d432e23f6025b78322cbee43e8e89262a108e5eaaron# or http://www.opensolaris.org/os/licensing.
9d432e23f6025b78322cbee43e8e89262a108e5eaaron# See the License for the specific language governing permissions
9d432e23f6025b78322cbee43e8e89262a108e5eaaron# and limitations under the License.
9d432e23f6025b78322cbee43e8e89262a108e5eaaron#
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]
6a5bdbbacf4a62adecde52b8f23ebcc4fa2a08b8trawick#
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin# CDDL HEADER END
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin#
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin#
10306ac2c175f420e6989568f4c8535a5dbc1349minfrin# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
b4e4d76bf454e1b603b410110356dbcf12f3bc42jim# Use is subject to license terms.
b4e4d76bf454e1b603b410110356dbcf12f3bc42jim#
b4e4d76bf454e1b603b410110356dbcf12f3bc42jim# ident "%Z%%M% %I% %E% SMI"
adb1e17ae7e1cf5cf4f8f2b07d3389cb55f4becetrawick
adb1e17ae7e1cf5cf4f8f2b07d3389cb55f4becetrawick. /lib/svc/share/smf_include.sh
adb1e17ae7e1cf5cf4f8f2b07d3389cb55f4becetrawick
71f891073f6fa0209870791f64cbbf28d77ffdc1brianp[ ! -x /usr/lib/utmpd ] && exit $SMF_EXIT_ERR_CONFIG
71f891073f6fa0209870791f64cbbf28d77ffdc1brianp
2864362ca8266097928e84f101010bdf814ffa08stoddard# If a utmppipe exists, check for a utmpd process and exit
2864362ca8266097928e84f101010bdf814ffa08stoddard# if the daemon is already running.
2864362ca8266097928e84f101010bdf814ffa08stoddard
2864362ca8266097928e84f101010bdf814ffa08stoddardif [ -p /etc/utmppipe ]; then
2864362ca8266097928e84f101010bdf814ffa08stoddard if /usr/bin/pgrep -x -u 0 -z `smf_zonename` utmpd >/dev/null 2>&1; then
f51dbb1f5b66d94b5c190bfcd444aa73bdc2b176trawick echo "$0: utmpd is already running"
893c106ae59d8e96d921524b123ae26dea8ad37fgstein exit 1
893c106ae59d8e96d921524b123ae26dea8ad37fgstein fi
893c106ae59d8e96d921524b123ae26dea8ad37fgsteinfi
893c106ae59d8e96d921524b123ae26dea8ad37fgstein
3aa6444bcee4e9fc32ec8860d832ff83a15784efianh/usr/bin/rm -f /etc/utmppipe
3aa6444bcee4e9fc32ec8860d832ff83a15784efianh/usr/lib/utmpd &
e2bdfd25d9d0461e0a3ab18ceff2113215e3e115brianp