svc-gdm revision 17984
1373N/A#!/bin/sh
1373N/A#
1373N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
1373N/A# Use is subject to license terms.
1373N/A#
0N/A#pragma ident "@(#)svc-gdm.src 1.1 06/02/06 SMI"
0N/A#
0N/A# For modifying parameters passed to dtlogin, do not edit
1298N/A# this script. Instead use svccfg(1m) to modify the SMF
1298N/A# repository. For example:
1298N/A#
1298N/A# # svccfg
1298N/A# svc:> select application/graphical-login/gdm
1298N/A# svc:/application/graphical-login/gdm> setprop gdm/args = "--fatal-warnings"
1298N/A# svc:/application/graphical-login/gdm> exit
1298N/A
1298N/A. /lib/svc/share/smf_include.sh
1298N/A
1298N/Acase "$1" in
1298N/A'start')
1298N/A FMRI=svc:/application/graphical-login/gdm:default
1298N/A
1298N/A arg=`eval "echo \`svcprop -p gdm/args $FMRI\`"`
0N/A
0N/A /usr/sbin/gdm $arg &
0N/A fi
1298N/A
0N/A rc=$?
1298N/A if [ $rc != 0 ]; then
1298N/A echo "$0: gdm failed with $rc"
1298N/A exit 1
0N/A fi
1298N/A ;;
1298N/A
1298N/A'stop')
1298N/A /usr/sbin/gdm-stop
1298N/A ;;
1073N/A
1298N/A*)
0N/A echo "Usage: $0 { start | stop }"
1298N/A exit 1
1298N/A ;;
0N/Aesac
0N/A
115N/Aexit $SMF_EXIT_OK
115N/A