Vorberitung auf upstart
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_openldap@5539 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
5be1aaae67
commit
be9dee818b
16
etc/init/openldap.conf
Normal file
16
etc/init/openldap.conf
Normal 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 [S016]
|
||||
|
||||
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
|
|
@ -5,6 +5,7 @@
|
|||
#$Revision$
|
||||
#
|
||||
|
||||
if [ -d /var/install/sysvinit* ]; then
|
||||
WDIR=`pwd`
|
||||
cd etc/init.d
|
||||
chmod 755 openldap
|
||||
|
@ -20,3 +21,4 @@ for i in 3 4 5; do
|
|||
cd ..
|
||||
done
|
||||
cd $WDIR
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user