You must edit the /etc/inittab file and add a line to start the directory server instance at operating system startup on AIX®, Linux, and Solaris systems.
id:runlevels:action:process
Add one of the following lines to your inittab file:
srv1:2:once:/opt/IBM/ldap/V6.3/sbin/idsslapd -I server_name > /dev/null 2>&1
#Autostart IBM LDAP Directory Server Instance
srv1:2345:once:/opt/ibm/ldap/V6.3/sbin/ibmslapd -I server_name > /dev/null 2>&1
#Autostart IBM LDAP Directory Server Instance
srv1:234:once:/opt/IBM/ldap/V6.3/sbin/ibmslapd -I server_name > /dev/null 2>&1
#Autostart IBM LDAP Directory Server Instance
where server_name is the name of the directory server instance you want to start automatically.
After the entry is added to the /etc/inittab file, the directory server instance (full or proxy) is ready for autostart after system restart.
Be sure that all of the full directory servers are up and running before the proxy server starts. If you have full servers and a proxy server on the same computer, add a delay between the full server and the proxy server startup. In the following example, this done in the lines starting with srv3:2345:wait: and srv4:2345:wait:.
#Autostart IBM LDAP Directory Server Instance
srv1:2345:wait:/opt/IBM/ldap/V6.3/sbin/idsslapd -I server1 > /dev/null 2>&1
#Autostart IBM LDAP Directory Server Instance
srv2:2345:wait:/opt/IBM/ldap/V6.3/sbin/idsslapd -I server2 > /dev/null 2>&1
#Autostart IBM LDAP Directory Server proxy instance
srv3:2345:wait:/opt/IBM/ldap/V6.3/sbin/idsslapd -I proxy -k > /dev/null 2>&1
#Autostart IBM LDAP Directory Server proxy instance
srv4:2345:wait:/opt/IBM/ldap/V6.3/sbin/idsslapd -I proxy > /dev/null 2>&1
where server1 and server2 are full directory server instances, and proxy is a proxy server instance.