Skip to content

Commit

Permalink
Merge pull request #182 from VinceMacBuche/bug/4132/always_restart_slapd
Browse files Browse the repository at this point in the history
Ref #4132: slapd always restarted
  • Loading branch information
jooooooon committed Nov 6, 2013
2 parents 865ca8e + 0a05e15 commit 649cfd8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rudder-inventory-ldap/SPECS/rudder-inventory-ldap.spec
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,10 @@ if [ -r /opt/rudder/etc/openldap/slapd.conf -a -e /var/rudder/ldap/openldap-data
fi
fi

echo "All done. Starting slapd..."
/etc/init.d/slapd start
# Need to restart to take schema changes into account
echo -n "INFO: Restarting slapd..."
/sbin/service slapd restart >/dev/null 2>&1
echo " Done"

#=================================================
# Cleaning
Expand Down
6 changes: 6 additions & 0 deletions rudder-inventory-ldap/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ case "$1" in
echo "OpenLDAP indexes updated."
fi
fi

# Restart slapd to take schema changes into account
echo -n "INFO: Restarting slapd..."
invoke-rc.d slapd restart >/dev/null 2>&1
echo " Done"

;;

abort-upgrade|abort-remove|abort-deconfigure)
Expand Down

0 comments on commit 649cfd8

Please sign in to comment.