mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
03.37.2008 5eea85798a7476a490262164c65fb5836d275165
opends/resource/bin/start-ds
@@ -45,6 +45,26 @@
SCRIPT_NAME="start-ds"
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
# OpenDS.
# Check --exec. If not present, start OpenDS from SMF
if test -f "${INSTALL_ROOT}/lib/_svc-opends.sh"
then
    if [ "$1" == "--exec" ]
    then
        shift
    elif [ -z "$1" -o "$1" == "-L" -o "$1" == "-Q" -o "$1" == "-N" -o \
     "$1" == "--nodetach" -o "$1" == "-useLastKnownGoodConfig" \
     -o "$1" == "--quiet" ]
    then
# these options are only used when trying to start the server
# In this case, start it through the service.
        exec /usr/sbin/svcadm enable -t svc:/network/ldap/server:opends
    fi
fi
# Set environment variables
SCRIPT_UTIL_CMD=set-full-environment-and-test-java
export SCRIPT_UTIL_CMD