| | |
| | | # |
| | | # |
| | | # Copyright 2006-2009 Sun Microsystems, Inc. |
| | | # Portions Copyright 2011 ForgeRock AS |
| | | |
| | | |
| | | # Capture the current working directory so that we can change to it later. |
| | |
| | | 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 |
| | |
| | | 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 |
| | | |