stop-ds revision 814920a099ee946453263e682c7bb2cda00b7983
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER START
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# The contents of this file are subject to the terms of the
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Common Development and Distribution License, Version 1.0 only
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# (the "License"). You may not use this file except in compliance
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# with the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# You can obtain a copy of the license at
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# See the License for the specific language governing permissions
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# and limitations under the License.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# When distributing Covered Code, include this CDDL HEADER in each
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# file and include the License file at
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# add the following below this CDDL HEADER, with the fields enclosed
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# by brackets "[]" replaced with your own identifying information:
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Portions Copyright [yyyy] [name of copyright owner]
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# CDDL HEADER END
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Copyright 2006-2009 Sun Microsystems, Inc.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# Portions Copyright 2011 ForgeRock AS
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# This script may be used to request that the Directory Server shut down.
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# It operates in two different ways, depending on how it is invoked. If it
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amw# is invoked without any arguments and a local PID file is available, then it
export INSTALL_ROOT
export SCRIPT_NAME
# check for presence of lib/_svc-opendj.sh file
# If present, we should be on Solaris/OpenSolaris and use SMF to start
if test -f "${INSTALL_ROOT}/lib/_svc-opendj.sh"
RETURN_CODE=$?
exit ${RETURN_CODE}
export SCRIPT_UTIL_CMD
. "${INSTALL_ROOT}/lib/_script-util.sh"
RETURN_CODE=$?
exit ${RETURN_CODE}
EC=${?}
exit ${EC}
if test -f "${INSTANCE_ROOT}/logs/server.pid"
kill ${PID}
EXIT_CODE=${?}
EXIT_CODE=${?}
echo "ERROR: Unable to find the server.pid file to determine the process"
if test -f "${INSTANCE_ROOT}/logs/server.pid"
EXIT_CODE=${?}
exit ${EXIT_CODE}
EXIT_CODE=${?}
exit ${EXIT_CODE}