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

Ludovic Poitou
08.03.2011 8bbba9d3256c37205f9bd5ab131554c0fa453145
opends/resource/bin/start-ds
@@ -24,6 +24,7 @@
#
#
#      Copyright 2006-2009 Sun Microsystems, Inc.
#      Portions Copyright 2011 ForgeRock AS
# Capture the current working directory so that we can change to it later.
@@ -45,12 +46,12 @@
SCRIPT_NAME="start-ds"
export SCRIPT_NAME
# check for presence of lib/_svc-opends.sh file
# check for presence of lib/_svc-opendj.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
# OpenDJ.
# Check --exec. If not present, start OpenDJ from SMF
if test -f "${INSTALL_ROOT}/lib/_svc-opends.sh"
if test -f "${INSTALL_ROOT}/lib/_svc-opendj.sh"
then
    if [ "$1" = "--exec" ]
    then
@@ -61,7 +62,7 @@
    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
        exec /usr/sbin/svcadm enable -t svc:/network/ldap/server:opendj
    fi
fi