20787N/A#!/sbin/sh
20787N/A#
20787N/A# Copyright 2011, Oracle and/or its affiliates. All rights reserved.
20787N/A# Use is subject to license terms.
20787N/A#
20787N/A#pragma ident "@(#)svc-accountsservice.src 1.1 06/02/06 SMI"
20787N/A#
20787N/A# For modifying parameters passed to dtlogin, do not edit
20787N/A# this script. Instead use svccfg(1m) to modify the SMF
20787N/A# repository. For example:
20787N/A#
20787N/A. /lib/svc/share/smf_include.sh
20787N/A
20787N/Aif smf_is_nonglobalzone; then
20787N/A /usr/sbin/svcadm disable -t svc:/system/accountsservice
20787N/A echo "console-kit-daemon cannot be run in non-global zones"
20787N/A sleep 5 &
20787N/A exit $SMF_EXIT_OK
20787N/Afi
20787N/A
20787N/Acase "$1" in
20787N/A'start')
20787N/A FMRI=svc:/system/accountsservice:default
20787N/A
20787N/A /usr/lib/accounts-daemon &
20787N/A
20787N/A rc=$?
20787N/A if [ $rc -ne 0 ]; then
20787N/A echo "$0: accountsservice failed with $rc"
20787N/A exit $SMF_EXIT_ERR_FATAL
20787N/A fi
20787N/A ;;
20787N/A
20787N/A*)
20787N/A echo "Usage: $0 { start }"
20787N/A exit $SMF_EXIT_ERR_FATAL
20787N/A ;;
20787N/Aesac
20787N/A
20787N/Aexit $SMF_EXIT_OK