#!/usr/sbin/sh # # Copyright (c) 1994, 2011, Oracle and/or its affiliates. All rights reserved. # . /lib/svc/share/smf_include.sh [ ! -x /usr/lib/utmpd ] && exit $SMF_EXIT_ERR_CONFIG # If a utmppipe exists, check for a utmpd process and exit # if the daemon is already running. if [ -p $SMF_SYSVOL_FS/utmppipe ]; then if /usr/bin/pgrep -x -u 0 -z `smf_zonename` utmpd >/dev/null 2>&1; then echo "$0: utmpd is already running" exit 1 fi fi /usr/bin/rm -f $SMF_SYSVOL_FS/utmppipe /usr/lib/utmpd &