Author: rmeggins
Update of /cvs/dirsec/ldapserver/ldap/admin/src/scripts
In directory
cvs-int.fedora.redhat.com:/tmp/cvs-serv15984/ldapserver/ldap/admin/src/scripts
Modified Files:
template-bak2db template-bak2db.in template-db2bak
template-db2bak.in template-db2index template-db2index.in
template-db2ldif template-db2ldif.in template-ldif2db
template-ldif2db.in template-restoreconfig
template-restoreconfig.in template-saveconfig
template-saveconfig.in template-start-slapd
template-start-slapd.in template-stop-slapd
template-stop-slapd.in template-suffix2instance
template-suffix2instance.in template-upgradedb.in
template-vlvindex template-vlvindex.in
Log Message:
esolves: bug 227618
Bug Description: FHS: move exes to _bindir; move ns-slapd to _sbindir
Reviewed by: many people (Thanks!)
Fix Description: In order to be more FHS compliant, we need to make the following
changes:
1) move files executable by end users to _bindir (e.g. /usr/bin) - this means logconv.pl,
ds_newinst, dbscan, etc.
2) move the server executable ns-slapd to _sbindir (e.g. /usr/sbin)
And, to be more packaging friendly, the additional changes:
3) move libback-ldbm to the plugins dir - it is a plugin
4) use the libtool -avoid-version flag with plugins - we don't need the .so.0.0.0 for
plugins
I had to add support for sbindir and SBINDIR to create_instance and ds_newinst. We were
using serverdir for 3 things - command line programs, server specific shared libs, and the
server executable itself. These are now in 3 different places. The biggest change was to
the scripts. I kept serverdir and SERVER-DIR to be the location of the server shared libs
to avoid changing even more stuff. I had to add SERVERBIN-DIR to the scripts - this is
the location of ns-slapd and is set by sbindir in create_instance (which defaults to
SBINDIR from Makefile.am which defaults to $prefix/sbin in configure - whew).
I've tested instance creation with these diffs - everything seems to work fine.
5) reorder files in alphabetical order - suggested by nkinder
6) add $LDFLAGS to test in db.m4
7) touch all template/wrapper .in files to make them newer than their corresponding files
Platforms tested: RHEL4, FC6
Flag Day: no
Doc impact: Yes, but the docs will have to change quite a bit for all of the FHS related
changes.
Index: template-bak2db
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-bak2db,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- template-bak2db 27 Oct 2006 16:45:18 -0000 1.1
+++ template-bak2db 7 Feb 2007 23:57:40 -0000 1.2
@@ -1,9 +1,9 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export SHLIB_PATH
if [ $# -lt 1 ] || [ $# -gt 3 ]
@@ -30,7 +30,7 @@
archivedir=`pwd`/$archivedir
fi
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ "$#" -eq 2 ]
then
./ns-slapd archive2db -D {{CONFIG-DIR}} -a $archivedir -n $bename
Index: template-bak2db.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-bak2db.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- template-bak2db.in 28 Nov 2006 17:13:48 -0000 1.3
+++ template-bak2db.in 7 Feb 2007 23:57:40 -0000 1.4
@@ -4,7 +4,7 @@
if [ "$prefix" = "/" ] ; then
prefix=""
fi
-LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@
if [ -n "$prefix" ] ; then
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@nss_libdir@"
fi
@@ -36,7 +36,7 @@
archivedir=`pwd`/$archivedir
fi
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ "$#" -eq 2 ]
then
./ns-slapd archive2db -D {{CONFIG-DIR}} -a $archivedir -n $bename
Index: template-db2bak
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-db2bak,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- template-db2bak 27 Oct 2006 16:45:18 -0000 1.1
+++ template-db2bak 7 Feb 2007 23:57:40 -0000 1.2
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ "$#" -eq 1 ]
then
bak_dir=$1
Index: template-db2bak.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-db2bak.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- template-db2bak.in 28 Nov 2006 17:13:48 -0000 1.3
+++ template-db2bak.in 7 Feb 2007 23:57:40 -0000 1.4
@@ -4,7 +4,7 @@
if [ "$prefix" = "/" ] ; then
prefix=""
fi
-LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@
if [ -n "$prefix" ] ; then
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@nss_libdir@"
fi
@@ -12,7 +12,7 @@
SHLIB_PATH=$LD_LIBRARY_PATH
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ "$#" -eq 1 ]
then
bak_dir=$1
Index: template-db2index
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-db2index,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- template-db2index 27 Oct 2006 16:45:18 -0000 1.1
+++ template-db2index 7 Feb 2007 23:57:40 -0000 1.2
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ $# -eq 0 ]
then
bak_dir={{BAK-DIR}}/reindex_`date +%Y_%m_%d_%H_%M_%S`
Index: template-db2index.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-db2index.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- template-db2index.in 28 Nov 2006 17:13:48 -0000 1.3
+++ template-db2index.in 7 Feb 2007 23:57:40 -0000 1.4
@@ -4,7 +4,7 @@
if [ "$prefix" = "/" ] ; then
prefix=""
fi
-LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@
if [ -n "$prefix" ] ; then
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@nss_libdir@"
fi
@@ -12,7 +12,7 @@
SHLIB_PATH=$LD_LIBRARY_PATH
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ $# -eq 0 ]
then
bak_dir={{BAK-DIR}}/reindex_`date +%Y_%m_%d_%H_%M_%S`
Index: template-db2ldif
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-db2ldif,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- template-db2ldif 27 Oct 2006 16:45:18 -0000 1.1
+++ template-db2ldif 7 Feb 2007 23:57:40 -0000 1.2
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ "$#" -lt 2 ];
then
echo "Usage: db2ldif {-n backend_instance}* | {-s includesuffix}*"
Index: template-db2ldif.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-db2ldif.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- template-db2ldif.in 28 Nov 2006 17:13:48 -0000 1.3
+++ template-db2ldif.in 7 Feb 2007 23:57:40 -0000 1.4
@@ -4,7 +4,7 @@
if [ "$prefix" = "/" ] ; then
prefix=""
fi
-LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@
if [ -n "$prefix" ] ; then
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@nss_libdir@"
fi
@@ -12,7 +12,7 @@
SHLIB_PATH=$LD_LIBRARY_PATH
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ "$#" -lt 2 ];
then
echo "Usage: db2ldif {-n backend_instance}* | {-s includesuffix}*"
@@ -37,7 +37,7 @@
done
if [ $ldif_file = "mydummy" ]
then
- ldif_file={{LDIF-DIR}}/laputa-`date +%Y_%m_%d_%H%M%S`.ldif
+ ldif_file={{LDIF-DIR}}/`date +%Y_%m_%d_%H%M%S`.ldif
fi
if [ $set_ldif -eq 2 ]
then
Index: template-ldif2db
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-ldif2db,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- template-ldif2db 27 Oct 2006 16:45:18 -0000 1.1
+++ template-ldif2db 7 Feb 2007 23:57:40 -0000 1.2
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ $# -lt 4 ]
then
echo "Usage: ldif2db -n backend_instance | {-s includesuffix}* [{-x
excludesuffix}*]"
Index: template-ldif2db.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-ldif2db.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- template-ldif2db.in 28 Nov 2006 17:13:48 -0000 1.3
+++ template-ldif2db.in 7 Feb 2007 23:57:40 -0000 1.4
@@ -4,7 +4,7 @@
if [ "$prefix" = "/" ] ; then
prefix=""
fi
-LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@
if [ -n "$prefix" ] ; then
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:@nss_libdir@"
fi
@@ -12,7 +12,7 @@
SHLIB_PATH=$LD_LIBRARY_PATH
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ $# -lt 4 ]
then
echo "Usage: ldif2db -n backend_instance | {-s includesuffix}* [{-x
excludesuffix}*]"
Index: template-restoreconfig
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-restoreconfig,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- template-restoreconfig 27 Oct 2006 16:45:18 -0000 1.1
+++ template-restoreconfig 7 Feb 2007 23:57:40 -0000 1.2
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
conf_ldif=`ls -1t {{BAK-DIR}}/{{SERV-ID}}-*.ldif | head -1`
if [ -z "$conf_ldif" ]
then
Index: template-restoreconfig.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-restoreconfig.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- template-restoreconfig.in 28 Nov 2006 17:13:48 -0000 1.3
+++ template-restoreconfig.in 7 Feb 2007 23:57:40 -0000 1.4
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
conf_ldif=`ls -1t {{BAK-DIR}}/{{SERV-ID}}-*.ldif | head -1`
if [ -z "$conf_ldif" ]
then
Index: template-saveconfig
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-saveconfig,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- template-saveconfig 27 Oct 2006 16:45:18 -0000 1.1
+++ template-saveconfig 7 Feb 2007 23:57:40 -0000 1.2
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
echo saving configuration ...
conf_ldif={{BAK-DIR}}/{{SERV-ID}}-`date +%Y_%m_%d_%H%M%S`.ldif
./ns-slapd db2ldif -N -D {{CONFIG-DIR}} -s "o=NetscapeRoot" -a $conf_ldif -n
NetscapeRoot 2>&1
Index: template-saveconfig.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-saveconfig.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- template-saveconfig.in 28 Nov 2006 17:13:48 -0000 1.3
+++ template-saveconfig.in 7 Feb 2007 23:57:40 -0000 1.4
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
echo saving configuration ...
conf_ldif={{BAK-DIR}}/{{SERV-ID}}-`date +%Y_%m_%d_%H%M%S`.ldif
./ns-slapd db2ldif -N -D {{CONFIG-DIR}} -s "o=NetscapeRoot" -a $conf_ldif -n
NetscapeRoot 2>&1
Index: template-start-slapd
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-start-slapd,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- template-start-slapd 5 Feb 2007 22:30:12 -0000 1.2
+++ template-start-slapd 7 Feb 2007 23:57:40 -0000 1.3
@@ -1,9 +1,9 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+LD_LIBRARY_PATH=$prefix{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+SHLIB_PATH=$prefix{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export SHLIB_PATH
# Script that starts the ns-slapd server.
@@ -12,8 +12,6 @@
# 1: Server could not be started
# 2: Server already running
-NETSITE_ROOT={{SERVER-DIR}}
-export NETSITE_ROOT
DS_CONFIG_DIR={{CONFIG-DIR}}
export DS_CONFIG_DIR
PIDFILE={{RUN-DIR}}/{{PRODUCT-NAME}}-{{SERV-ID}}.pid
@@ -36,7 +34,7 @@
rm -f $PIDFILE
fi
fi
-cd {{SERVER-DIR}}; ./ns-slapd -D {{CONFIG-DIR}} -i $PIDFILE -w $STARTPIDFILE
"$@"
+cd {{SERVERBIN-DIR}}; ./ns-slapd -D {{CONFIG-DIR}} -i $PIDFILE -w $STARTPIDFILE
"$@"
if [ $? -ne 0 ]; then
exit 1
fi
Index: template-start-slapd.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-start-slapd.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- template-start-slapd.in 6 Feb 2007 21:44:09 -0000 1.5
+++ template-start-slapd.in 7 Feb 2007 23:57:40 -0000 1.6
@@ -1,9 +1,9 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+LD_LIBRARY_PATH=$prefix{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+SHLIB_PATH=$prefix{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
export SHLIB_PATH
# Script that starts the ns-slapd server.
@@ -12,8 +12,6 @@
# 1: Server could not be started
# 2: Server already running
-NETSITE_ROOT={{SERVER-DIR}}
-export NETSITE_ROOT
DS_CONFIG_DIR={{CONFIG-DIR}}
export DS_CONFIG_DIR
PIDFILE={{RUN-DIR}}/{{PRODUCT-NAME}}-{{SERV-ID}}.pid
@@ -36,7 +34,7 @@
rm -f $PIDFILE
fi
fi
-cd {{SERVER-DIR}}; ./ns-slapd -D {{CONFIG-DIR}} -i $PIDFILE -w $STARTPIDFILE
"$@"
+cd {{SERVERBIN-DIR}}; ./ns-slapd -D {{CONFIG-DIR}} -i $PIDFILE -w $STARTPIDFILE
"$@"
if [ $? -ne 0 ]; then
exit 1
fi
Index: template-stop-slapd
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-stop-slapd,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- template-stop-slapd 5 Feb 2007 22:30:12 -0000 1.2
+++ template-stop-slapd 7 Feb 2007 23:57:40 -0000 1.3
@@ -1,11 +1,5 @@
#!/bin/sh
-prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
-export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
-export SHLIB_PATH
-
# Script that stops the ns-slapd server.
# Exit status can be:
# 0: Server stopped successfully
Index: template-stop-slapd.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-stop-slapd.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- template-stop-slapd.in 6 Feb 2007 21:44:09 -0000 1.5
+++ template-stop-slapd.in 7 Feb 2007 23:57:40 -0000 1.6
@@ -1,11 +1,5 @@
#!/bin/sh
-prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
-export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
-export SHLIB_PATH
-
# Script that stops the ns-slapd server.
# Exit status can be:
# 0: Server stopped successfully
Index: template-suffix2instance
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-suffix2instance,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- template-suffix2instance 27 Oct 2006 16:45:18 -0000 1.1
+++ template-suffix2instance 7 Feb 2007 23:57:40 -0000 1.2
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ $# -lt 2 ]
then
echo Usage: suffix2instance {-s includesuffix}*
Index: template-suffix2instance.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-suffix2instance.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- template-suffix2instance.in 28 Nov 2006 17:13:48 -0000 1.3
+++ template-suffix2instance.in 7 Feb 2007 23:57:40 -0000 1.4
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ $# -lt 2 ]
then
echo Usage: suffix2instance {-s includesuffix}*
Index: template-upgradedb.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-upgradedb.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- template-upgradedb.in 28 Nov 2006 17:13:48 -0000 1.3
+++ template-upgradedb.in 7 Feb 2007 23:57:40 -0000 1.4
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ "$#" -eq 1 ]
then
bak_dir=$1
Index: template-vlvindex
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-vlvindex,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- template-vlvindex 27 Oct 2006 16:45:18 -0000 1.1
+++ template-vlvindex 7 Feb 2007 23:57:40 -0000 1.2
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix/usr/lib/dirsec:$prefix/usr/lib:/usr/lib/dirsec
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ $# -lt 4 ]
then
echo "Usage: vlvindex -n backend_instance | {-s includesuffix}* -T attribute"
Index: template-vlvindex.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/admin/src/scripts/template-vlvindex.in,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- template-vlvindex.in 28 Nov 2006 17:13:48 -0000 1.3
+++ template-vlvindex.in 7 Feb 2007 23:57:40 -0000 1.4
@@ -1,12 +1,12 @@
#!/bin/sh
prefix="{{DS-ROOT}}"
-LD_LIBRARY_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+LD_LIBRARY_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
export LD_LIBRARY_PATH
-SHLIB_PATH=$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
+SHLIB_PATH=$prefix/{{SERVER-DIR}}:$prefix@nss_libdir@:$prefix@libdir@:@nss_libdir@
export SHLIB_PATH
-cd {{SERVER-DIR}}
+cd {{SERVERBIN-DIR}}
if [ $# -lt 4 ]
then
echo "Usage: vlvindex -n backend_instance | {-s includesuffix}* -T attribute"