restart_fmri revision 5887
18N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 18N/A# Use is subject to license terms. 18N/A# Permission is hereby granted, free of charge, to any person obtaining a 18N/A# copy of this software and associated documentation files (the 18N/A# "Software"), to deal in the Software without restriction, including 18N/A# without limitation the rights to use, copy, modify, merge, publish, 18N/A# distribute, and/or sell copies of the Software, and to permit persons 18N/A# to whom the Software is furnished to do so, provided that the above 18N/A# copyright notice(s) and this permission notice appear in all copies of 18N/A# the Software and that both the above copyright notice(s) and this 18N/A# permission notice appear in supporting documentation. 18N/A# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 18N/A# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18N/A# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 18N/A# OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 18N/A# HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 18N/A# INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 58N/A# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 18N/A# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 18N/A# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18N/A# Except as contained in this notice, the name of a copyright holder 18N/A# shall not be used in advertising or otherwise to promote the sale, use 18N/A# or other dealings in this Software without prior written authorization 18N/A# of the copyright holder. 18N/A########################################################################### 136N/A # No need to restart any services, we will do that at system boot 136N/A echo "Postinstall actions deferred until the next system boot" 136N/A # Installation to an alternate root directory 58N/A # Not safe to restart the services in the altroot, wait for the next 18N/A echo "Postinstall actions deferred until the next system boot" 137N/A echo "Usage: $0 [options] [sevices]" 137N/A echo " -h, --help display this usage information" 18N/A echo " -n test mode; print what would be done, but don't do it" 135N/A # sets svc_exists, svc_state, svc_fmri 18N/A echo "ERROR: smf service not found: $arg" 212N/A # the service is still running its start method 42N/A echo "ERROR: smf service $svc_fmri is in maintenance mode, try svcadm clear" 42N/A echo "Restarting services [test mode, not actually restarting them]:" 42N/A echo "Restarting services:" 42N/A echo "Enabling services [test mode, not actually enabling them]:" 42N/A echo "Enabling services:"