summaryrefslogtreecommitdiffstats
path: root/wrappers
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2009-01-29 23:41:35 +0000
committerNathan Kinder <nkinder@redhat.com>2009-01-29 23:41:35 +0000
commitdc5877e37a1ff48b9b2146b4ef6da54d8870ae00 (patch)
treef48c8bf4278a2d09820edfdb408dc769848f3081 /wrappers
parentc5314042ff139ca6c5b6eaf21be52dccf24f8444 (diff)
downloadds-dc5877e37a1ff48b9b2146b4ef6da54d8870ae00.tar.gz
ds-dc5877e37a1ff48b9b2146b4ef6da54d8870ae00.tar.xz
ds-dc5877e37a1ff48b9b2146b4ef6da54d8870ae00.zip
Resolves: 452007
Summary: Make init script ignore removed instances.
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/initscript.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/wrappers/initscript.in b/wrappers/initscript.in
index 458d9f4b..d32c1ab1 100644
--- a/wrappers/initscript.in
+++ b/wrappers/initscript.in
@@ -97,7 +97,8 @@ umask 077
INSTANCES=""
-for FILE in `/bin/ls -d $instbase/slapd-* 2>/dev/null`; do
+# Ignore instances that have been removed
+for FILE in `/bin/ls -d $instbase/slapd-* | sed -n '/\.removed$/!p' 2>/dev/null`; do
if [ -d "$FILE" ] ; then
inst=`echo "$FILE" | sed -e "s|$instbase/slapd-||"`
INSTANCES="$INSTANCES $inst"