Compare commits

...

No commits in common. "v961" and "v963" have entirely different histories.
v961 ... v963

2 changed files with 33 additions and 15 deletions

16
etc/init/openldap.conf Normal file
View File

@ -0,0 +1,16 @@
description "Startup ldap daemon"
author "Harald Kueller <harald.kueller@compuextreme.de>"
version 1.0
emits none special
start on (runlevel [2345] and (started rpc))
stop on runlevel [016]
console output
script
source /etc/init/functions
if [ -f /etc/openldap/slapd.conf ]; then
/usr/sbin/slapd -f /etc/openldap/slapd.conf -d 0
fi
end script

View File

@ -5,18 +5,20 @@
#$Revision$ #$Revision$
# #
WDIR=`pwd` if [ -d /var/install/sysvinit* ]; then
cd etc/init.d WDIR=`pwd`
chmod 755 openldap cd etc/init.d
mkdir rc{0,1,2,3,4,5,6}.d chmod 755 openldap
for i in 0 1 2 6; do mkdir rc{0,1,2,3,4,5,6}.d
cd rc$i.d for i in 0 1 2 6; do
ln -s /etc/init.d/openldap K35openldap cd rc$i.d
cd .. ln -s /etc/init.d/openldap K35openldap
done cd ..
for i in 3 4 5; do done
cd rc$i.d for i in 3 4 5; do
ln -s /etc/init.d/openldap S15openldap cd rc$i.d
cd .. ln -s /etc/init.d/openldap S15openldap
done cd ..
cd $WDIR done
cd $WDIR
fi