stop-ds revision 4542
21c6ea459a2245c14e71f85b7cd3d160f75ff19eSatyen Desai# CDDL HEADER START
d2854acf6eef44cf0aca645de3a37cca1388f51aDav Glass# The contents of this file are subject to the terms of the
21c6ea459a2245c14e71f85b7cd3d160f75ff19eSatyen Desai# Common Development and Distribution License, Version 1.0 only
21c6ea459a2245c14e71f85b7cd3d160f75ff19eSatyen Desai# (the "License"). You may not use this file except in compliance
21c6ea459a2245c14e71f85b7cd3d160f75ff19eSatyen Desai# with the License.
# trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
export INSTALL_ROOT
export SCRIPT_NAME
# check for presence of lib/_svc-opends.sh file
# If present, we should be on Solaris/OpenSolaris and use SMF to start
if test -f "${INSTALL_ROOT}/lib/_svc-opends.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}