Working with the timesten daemon and server – Oracle Audio Technologies B31679-01 User Manual

Page 61

Advertising
background image

TimesTen Installation

53

• Copies the daemon scripts into the appropriate directories.

• If installed by user

root

, configures the system to start the daemon

when the system boots.

• Creates the directory where data stores created by the TimesTen

demo applications will reside. By default they reside in

/var/

TimesTen/

TTinstance

/DemoDataStore.

• Starts the daemon.

• If there are other instances of the same patch release of TimesTen

installed on the same machine, prompts you to provide a unique port
to be used by the TimesTen daemon.

• If the TimesTen Server is being installed, prompts you to configure

the Server: server name, port number and logging options.

• Prompts you to install the TimesTen documentation.

The daemon writes a timestend.pid file into the directory the
daemon was started from:

/var/TimesTen/

TTinstance

/

if installed

by the user

root

or

install_dir/info

if installed by a non-root user.

This file contains the daemon’s process ID. When the script to stop the
daemon is run, this ID is used to determine which process to terminate.
Once the process is terminated, the

timestend.pid

file is removed.

Note: When doing any compiling, use an ANSI C compiler.

Working with the TimesTen daemon and Server

The TimesTen main daemon starts automatically when the operating
system is booted and operates continually in the background.
Application developers do not interact with the daemon(timestend)
directly; no application code runs in the daemon and application
developers do not, in general, have to be concerned with it. Application
programs that use TimesTen data stores communicate with the daemon
transparently by using TimesTen internal routines.

There are situations, however, when you may have to start and stop the
daemon manually, using the TimesTen main daemon startup script. This
section explains how to start and stop the daemon. If you have installed
the TimesTen Server, it starts automatically when the TimesTen daemon
is started and stops automatically when the TimesTen daemon is
stopped.

Note: You must have root privileges or be the

TimesTen instance

administrator

to interact with the TimesTen daemon.

Advertising