Create a startup script for OUD
==================================
create-rc-script -f myscript -u sysAdmin -j /usr/java -J "-Xms128m -Xmx128m"
The following command uses the -u (--userName), -j (--javaHome) and -J (--javaArgs) options.
Example:
create-rc-script -f /etc/init.d/OUD_startall -u oracle -j /usr/java/jdk1.7.0_51 -J "-Xms128m -Xmx128m"
Then run this script when the appropriate run level change on the target distribution. For instance, on OEL, run
sudo chkconfig --level 3 OUD_startall on