Troubleshooting
Problem
The normal inittab method of auto-starting for ibmslapd/ibmdiradm does not work on RHEL 6. Here's how to make auto-starting work.
Symptom
ITDS daemons fail to auto-start on RHEL 6
Cause
RHEL 6 switched from using the old System V init script setup to using Upstart. Upstart deprecates the /etc/inittab file, which ITDS used for configuring auto-starting on *nix platforms
Resolving The Problem
To auto-start a daemon (ibmdiradm or ibmslapd) on RHEL 6.0, do the following:
(Using an instance called 'ldap63' as an example. This needs to be done by the root account or via sudo.)
1. Create a file with the same name as the instance in /etc/init; in this example, with an instance called ldap63 it would be /etc/init/ibmdiradm_ldap63.conf
2. Add the following lines:
---------
start on started network
stop on runlevel [016]
console output
pre-start exec /opt/ibm/ldap/V6.3/sbin/ibmdiradm -I ldap63
post-stop exec /opt/ibm/ldap/V6.3/sbin/ibmdiradm -I ldap63 -k
---------
3. This will auto-start the ibmdiradm server when the networking subsystem comes up on this server.
Of course you could auto-start ibmslapd as well:
4. Create a file called /etc/init/ibmslapd_ldap63.conf
---------
start on started network
stop on runlevel [016]
console output
pre-start exec /opt/ibm/ldap/V6.3/sbin/ibmslapd -I ldap63 -n
post-stop exec /opt/ibm/ldap/V6.3/sbin/ibmslapd -I ldap63 -k
---------
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21588061