Starting Rational Synergy daemons and Informix daemons automatically after system reboot

Some Rational® Synergy scripts can be configured to automatically start and stop the Rational Synergy daemons and the Informix® daemons. All scripts in this section must run in the Classic CLI. You can run the scripts on Solaris. The automatic system startup procedures vary for each platform and operating system. If you want to run these scripts on other systems, you must change the scripts and the startup files from which they are called. The examples shown here apply to the Sun SPARC platform running on Solaris.

Procedure

Create the following script in an /etc/init.d/rational file.

The script is called by other startup scripts that restart these processes.

For more information about scripts, see Setting up scripts to automatically start processes and Setting up scripts to automatically stop processes.

#!/bin/sh
#  IBM Rational Synergy Startup/Shutdown Script
#
CCM_HOME=$CCM_HOME
PATH=$CCM_HOME/bin:$PATH
export CCM_HOME PATH

case $1 in 'start')
# Do on the router system su ccm_root -c ccm_start_daemons
# Do on each database server machine
su informix -c ‘ccmsrv online -y -s servername'       su ccm_root -c ccm_objreg
           su ccm_root -c ccm_server
           ;;
					'stop')
					# Do on the router system
           su ccm_root -c ccm_stop_daemons
# Do on each database server machine
           su informix -c ‘ccmsrv offline -y -s servername 
           ;;

					*)
         echo "usage: /etc/init.d/rational {start|stop}"
         ;;
         esac

Feedback