aboutsummaryrefslogtreecommitdiffstats
path: root/main/openldap/slapd.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-07-02 09:50:56 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-02 09:50:56 +0000
commitf10bce070b3bea6cfad50c28c94561df9d7c271a (patch)
treeff838bd7056318e5b7bcbb61b149bd6f631ec2c2 /main/openldap/slapd.initd
parentd2ce688a9d4947d6632c9b06e5b2f9b1d3244820 (diff)
downloadaports-f10bce070b3bea6cfad50c28c94561df9d7c271a.tar.bz2
aports-f10bce070b3bea6cfad50c28c94561df9d7c271a.tar.xz
main/openldap: create pid dir before checking config
ref #2128
Diffstat (limited to 'main/openldap/slapd.initd')
-rw-r--r--main/openldap/slapd.initd2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/openldap/slapd.initd b/main/openldap/slapd.initd
index 23437bc45e..e05770030e 100644
--- a/main/openldap/slapd.initd
+++ b/main/openldap/slapd.initd
@@ -16,11 +16,11 @@ depend() {
}
start() {
+ checkpath --directory --owner ldap:ldap ${pidfile%/*}
if ! checkconfig -Q ; then
eerror "There is a problem with your slapd.conf!"
return 1
fi
- checkpath -d -o ldap:ldap ${pidfile%/*}
ebegin "Starting ldap-server"
[ -n "$KRB5_KTNAME" ] && export KRB5_KTNAME
eval start-stop-daemon --start \