packages/openldap: use new service functions
authorNicolas Thill <nico@openwrt.org>
Wed, 9 Nov 2011 23:25:19 +0000 (23:25 +0000)
committerNicolas Thill <nico@openwrt.org>
Wed, 9 Nov 2011 23:25:19 +0000 (23:25 +0000)
SVN-Revision: 28905

libs/openldap/Makefile
libs/openldap/files/ldap.init

index 6165d1f361406e2844cc5d1837db6dd9cdefc765..dc0cc05362723e683f9306a76bcb8febd632bd7d 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=openldap
 PKG_VERSION:=2.4.23
-PKG_RELEASE:=2
+PKG_RELEASE:=3
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ \
index dd14b2133d61fb125ed38b0109e9b9a1e7420fbc..b30bbf1953ae45936680bce31b485f79a7d2adc8 100644 (file)
@@ -3,12 +3,17 @@
 
 START=60
 
+SERVICE_USE_PID=1
+
 start() {
-       mkdir -p /var/openldap-data
-       
-       /usr/sbin/slapd
+       mkdir -m 0755 -p /var/openldap-data
+       service_start /usr/sbin/slapd
 }
 
 stop() {
-       killall slapd 2> /dev/null
+       service_stop /usr/sbin/slapd
+}
+
+reload() {
+       service_reload /usr/sbin/slapd
 }