Search
Ohloh statistics
LDAP Tool Box project: even LDAP administrators need help
OpenLDAP init scriptPresentation
The init script
Configuration of this script can be done in an external file, with the same name as the init script in A backup feature allows to save all data in an LDIF file, compressed or not. UsageRun the script like that: # /etc/init.d/slapd action With action in:
Installation
Copy script in # mv slapd /etc/init.d # chmod +x /etc/init.d/slapd Configure the service in init levels: # ln -s /etc/init.d/slapd /etc/rc3.d/S90slapd # ln -s /etc/init.d/slapd /etc/rc4.d/S90slapd # ln -s /etc/init.d/slapd /etc/rc5.d/S90slapd # ln -s /etc/init.d/slapd /etc/rc0.d/K10slapd # ln -s /etc/init.d/slapd /etc/rc6.d/K10slapd For RedHat based systems: # chkconfig --add slapd For Debian base systems: # update-rc.d slapd defaults
Configuration file must be installed in # mkdir -p /etc/default # mv slapd.default /etc/default/slapd # chmod 600 /etc/default/slapd You can run several OpenLDAP daemons on the same server, and use different init scripts. For example to have a “slapd2” init script: # cp /etc/init.d/slapd /etc/init.d/slapd2 # cp /etc/default/slapd /etc/default/slapd2 Configuration
Use the external file in
|


