packages/openldap: use new service functions

git-svn-id: svn://svn.openwrt.org/openwrt/packages@28905 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2011-11-09 23:25:19 +00:00
parent 6a3ba63e60
commit 28a89fcf24
2 changed files with 10 additions and 5 deletions

View 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/ \

View File

@ -3,12 +3,17 @@
START=60
start() {
mkdir -p /var/openldap-data
SERVICE_USE_PID=1
/usr/sbin/slapd
start() {
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
}