see: https://www.quora.com/In-what-sequence-the-scripts-in-etc-init-d-directory-are-executed
Thank you so much for your kind response.
Hi Thomas, Thank you again for your steps.
Could you please provide the script/command for the IC08_IHS.ini service.
Also please share the db2 autostart script when restart the Linux OS.
Hi Elango,
Here are instructions on configuring your environment so that DB2 will load on startup: https://www.ibm.com/support/pages/db2-wont-start-correctly-after-reboot
In my environment I use simple scripts that run via cron jobs when the system starts. For example, this script starts my IHS server:
#!/bin/bash
source /opt/scripts/conf
echo Starting HTTP Servers...
cd $ihs
./adminctl start > /dev/null
./apachectl start
This is my script for DMGR:
#!/bin/bash
source /opt/scripts/conf
cd $dmgr
echo Starting DMGR...
./startManager.sh > /dev/null
I have them sourced to a file called conf, which sets variables for my bin directories:
dmgr="/opt/IBM/WebSphere/AppServer/profiles/dmgr/bin"
ihs="/opt/IBM/HTTPServer/bin"
This makes the scripts easy to update for different environments. I just update the conf file if the directory paths are different.
To run them at startup, I have the following crontab entries:
@reboot /opt/scripts/startdmgr.sh &
@reboot /opt/scripts/startihs.sh &
These are just examples. I have similar scripts for all of my WAS app servers.
I hope this helps.
Tony Dezanet
Thank you so much Tony for the steps.