Autostart on AIX, Linux, and Solaris systems

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.

About this task

The inittab file specifies which processes are started at system startup and during normal operation. An entry in the inittab file has the following format:
id:runlevels:action:process
where:
  • id is a 1-4 digit unique ID in the file.
  • runlevels indicates the runlevel mode of the operating system in which the process should start automatically. Runlevel refers to the mode of operation of an AIX, Linux, or Solaris operating system. Runlevel configuration differs among operating systems. Refer to the operating system manual for your operating system for specific runlevel configuration details.
  • action describes the action to be taken. In this case it will have the value boot to indicate that the process should be started at system startup.
  • process is the process to be started.

Add one of the following lines to your inittab file:

For AIX systems
srv1:2:once:/opt/IBM/ldap/V6.3/sbin/idsslapd -I server_name > /dev/null 2>&1 
#Autostart IBM LDAP Directory Server Instance
For Linux systems
srv1:2345:once:/opt/ibm/ldap/V6.3/sbin/ibmslapd -I server_name > /dev/null 2>&1 
#Autostart IBM LDAP Directory Server Instance
For Solaris systems
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.