By Sylvain Duloutre on Jan 21, 2015
To simplify integration of OUD with the target OS, you can use the create-rc-script command to generate a shell script to start, stop, and restart the directory server. You can update the resulting script to suit the needs of your directory service. This command is available for UNIX or Linux systems.
So you can use this command to create RC scripts e.g. run sudo create-rc-script -f /etc/init.d/oud -u oud.
Then run this script when the appropriate run level change on the target distribution. For instance, on OEL, run sudo chkconfig –level 3 oud on
Make sure you use the -u userName option unless you really want to run OUD as root.