Start an Instance Automatically at System Startup with System V init Scripts

You have the option of having the TimesTen daemon started automatically at system startup and stopped automatically at system shutdown.

Note:

If you do not choose this option, the instance administrator controls the TimesTen daemon at all times.

To enable this option, the root user runs the TimesTen setuproot script with the -install option. The script is located in the timesten_home/bin directory. This script copies a set of scripts to the /etc/init.d directory.

Recall that there is information about this in the ttInstanceCreate output when it creates an instance. For example, for an instance named myinstance:

NOTE: The TimesTen daemon startup/shutdown scripts have not been installed.
 
The startup script is located here :
        '/swdir/TimesTen/ttinstances/myinstance/startup/tt_myinstance'
 
Run the 'setuproot' script :
        /swdir/TimesTen/ttinstances/myinstance/bin/setuproot -install
This will move the TimesTen startup script into its appropriate location.

The setuproot script operates according to the current setting of the TIMESTEN_HOME environment variable, which indicates the instance home directory.

In this example, timesten_home/bin is the current directory of the root user:

# echo $TIMESTEN_HOME
/swdir/TimesTen/ttinstances/myinstance
# $TIMESTEN_HOME/bin/setuproot -install
Would you like to install the TimesTen daemon startup scripts into /etc/init.d? 
[ yes ]
Copying /swdir/TimesTen/ttinstances/myinstance/startup/tt_myinstance to
 /etc/init.d
 
Successfully installed the following scripts :
/etc/init.d/tt_myinstance
/etc/rc.d/rc0.d/K45tt_myinstance
/etc/rc.d/rc1.d/K45tt_myinstance
/etc/rc.d/rc2.d/S90tt_myinstance
/etc/rc.d/rc3.d/S90tt_myinstance
/etc/rc.d/rc5.d/S90tt_myinstance
/etc/rc.d/rc6.d/K45tt_myinstance

Before you destroy the instance, root should run setuproot -uninstall.

# $TIMESTEN_HOME/bin/setuproot -uninstall
Would you like to uninstall the TimesTen daemon startup scripts in /etc/init.d? 
[ yes ]
 
Successfully deleted the following scripts :
/etc/rc.d/rc0.d/K45tt_myinstance
/etc/rc.d/rc1.d/K45tt_myinstance
/etc/rc.d/rc2.d/S90tt_myinstance
/etc/rc.d/rc3.d/S90tt_myinstance
/etc/rc.d/rc5.d/S90tt_myinstance
/etc/rc.d/rc6.d/K45tt_myinstance
/etc/init.d/tt_myinstance

Note:

If you do not run setuproot -uninstall before you destroy the instance, you must manually delete the files that were placed by setuproot -install.