From 8bbba9d3256c37205f9bd5ab131554c0fa453145 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Tue, 08 Feb 2011 12:03:28 +0000
Subject: [PATCH] Add support for SVR4 packages for OpenDJ. Package name is opendj. It's a single package and has integration with SMF. Default installation is /usr/opendj. Once packages are installed, root must run configure to setup the Instance location (/var/opendj) and owner. And the owner must run setup.
---
opends/resource/bin/stop-ds | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/opends/resource/bin/stop-ds b/opends/resource/bin/stop-ds
index f8b806b..c779b6c 100755
--- a/opends/resource/bin/stop-ds
+++ b/opends/resource/bin/stop-ds
@@ -24,6 +24,7 @@
#
#
# Copyright 2006-2009 Sun Microsystems, Inc.
+# Portions Copyright 2011 ForgeRock AS
# This script may be used to request that the Directory Server shut down.
@@ -59,11 +60,11 @@
SCRIPT_NAME="stop-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
-if test -f "${INSTALL_ROOT}/lib/_svc-opends.sh"
+# OpenDJ.
+# Check --exec. If not present, start OpenDJ from SMF
+if test -f "${INSTALL_ROOT}/lib/_svc-opendj.sh"
then
if [ "$1" = "--exec" ]
then
@@ -74,15 +75,15 @@
then
if [ "$1" = "-R" -o "$1" = "--restart" ]
then
- /usr/sbin/svcadm disable -t svc:/network/ldap/server:opends
+ /usr/sbin/svcadm disable -t svc:/network/ldap/server:opendj
RETURN_CODE=$?
if test ${RETURN_CODE} -ne 0
then
exit ${RETURN_CODE}
fi
- exec /usr/sbin/svcadm enable -t svc:/network/ldap/server:opends
+ exec /usr/sbin/svcadm enable -t svc:/network/ldap/server:opendj
else
- exec /usr/sbin/svcadm disable -t svc:/network/ldap/server:opends
+ exec /usr/sbin/svcadm disable -t svc:/network/ldap/server:opendj
fi
fi
fi
--
Gitblit v1.10.0