Creating the Runserver File

The runserver file contains start-up commands for the Full-Text Search engine. The runserver file can include the flags shown in Table 6-1

Table 6-1: Definition of flags in the runserver file

Flag

Definition

-Sserver_name

Specifies the name of the Full-Text Search engine and is used to locate the configuration file and the network connection information in the interfaces file.

-t

Causes the Full-Text Search engine to write start-up messages to standard error.

-lerrorlog_path

Specifies the path to the error log file.

-iinterfaces_file_path

Specifies the path to the interfaces file.

A sample runserver file is copied to the $SYBASE/$SYBASE_FTS/install directory during installation. Make a copy of this file, renaming it RUN_server_name, where server_name is the name of the Full-Text Search engine. You must include the correct path environment variable for your platform in the runserver file. Table 6-2 shows the path environment variable to use for each platform.

Table 6-2: Path environment variable for the runserver file

Platform

Environment Variable

RS/6000 AIX

LIBPATH

Sun Solaris

LD_LIBRARY_PATH

HP 9000(800)

SHLIB_PATH

Digital UNIX

LD_LIBRARY_PATH

For example, the runserver file on Sun Solaris for a Full-Text Search engine named KRAZYKAT would be RUN_KRAZYKAT and would be similar to:

#!/bin/sh
#

LD_LIBRARY_PATH="$SYBASE/$SYBASE_FTS/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH

$SYBASE/bin/txtsvr -SKRAZYKAT

The start-up command in the runserver file must consist of a single line and cannot include a return. If you have to carry the contents of the file over to a second or third line, include a backslash (\) for a line break.