Linux Script Requirements - trillium_quality - 17.2

Trillium Director User Guide

Product type
Software
Product family
Trillium
Product
Trillium > Trillium Quality
Version
17.2
Language
English
Product name
Trillium Quality
Title
Trillium Director User Guide
First publish date
2008
Last updated
2024-02-07
Published on
2024-02-07T07:50:08.870306
The Director System Manager examines the contents of the daemon scripts that launch Directors, cleansers, and matchers. The script is required to be executable, and writable, and launch only one type of service. The parsing of the script is quite simple, and is not interpretive of the code. A few lines are bypassed at the beginning of the script until the actual command line of the script is found. Remaining lines are ignored. The scripts are Bourne shell only and the parsing logic is similar to the following:
    case "$line" in
    \#*)
    ;;
    \:*)
    ;;
    *\=*)
    ;;
    export*)
    ;;
    *TSQRMatcher*)
        echo "$1" $line
        return 0
        ;;
    *TSQCleanser*)
        echo "$1" $line
        return 0
        ;;
    *TrilliumDirector*)
        echo "$1" $line
        return 0
    ;;
    *) return 1
    ;;

   

If your script is not compatible with the above code, it will not work. Also, remember that the script may be modified by the Director System Manager, for example if a user decides to change the pool size. If the script is modified, it is rewritten or regenerated completely, regardless of the old contents of the script. It would therefore be risky to expect that a hand written script would stay intact.

The following is an example of a start-up script for a cleanser (all on one line):
#
TSQCleanser -f /mypath/TrilliumSoftware/17/projects/
director_proj/settings/Trillium.cfg -h my.machine.com -p
4490 -l /mypath/TrilliumSoftware/17/projects/director_proj/
logs/mycleanse.log -P 0 -m 10 -s M -i Cleanser -t /mypath/
connectors/TrilliumSoftware/17/projects/director_proj/logs/
Mycleanse.trc