#------------------------------------------------------------------------------- # Configuration script for Tokyo Tyrant #------------------------------------------------------------------------------- # Basic configuration option # # ttserver -host specify the host name or the address of the server. # By default, every network is bound. # -port specify the port number. By default, it 1978. # -thnum specify the number of worker threads. # By default, it is 8. # -tout specify the timeout of each session in seconds. # By default, no timeout is specified. # -dmn work as a daemon process. # -pid output the process ID into the file. # -kl kill the existing process if the process ID file is # detected. # -log output log messages into the file. # -ld log debug messages also. # -le log error messages only. # -ulog specify the update log directory. # -ulim specify the limit size of each update log file. # -uas use asynchronous I/O for the update log. # -sid specify the server ID. # -mhost specify the host name of the replication master # server. # -mport specify the port number of the replication master # server. # -rts specify the replication time stamp file. # -rcc check consistency of replication. # -skel specify the name of the skeleton database library. # -ext specify the script language extension file. # -extpc specify the function name and the calling # period of a periodic command. # -mask specify the names of forbidden commands. # -unmask specify the names of allowed commands. # # # Base dir for Tokyo Tyrant # basedir="/usr/local/tokyo/tyrant/" # # Bin dir for # bindir=$basedir"bin/" datadir=$basedir"data/" # # Port for tcp/ip connections # port="1978" # # PID file location # pidfile="/var/lock/tyrant" # # Log file location # #logfile="/var/log/tyrant" # # Update Log file location # #ulogdir="$basedir/ulog" # # # #ulimsiz="256m" # # # #sid=1 # # Master replication server # #mhost="remotehost1" # # # #mport="1978" # # # #rtsfile="$basedir/rts" # # database name # dbname="${datadir}casket.tch#bnum=100000000" # # Maximum number of connections # maxcon="65535" # # # retval=0 # END OF FILE