#################################################################################
# d2dbs.conf  -  Configuration file for the Diablo2 Game database server	#
#-------------------------------------------------------------------------------#
#										#
# This file is an example configuration and may require modification to		#
# suit your needs or your site.  Blank lines and lines starting with a "#"	#
# are ignored.  Use quotes around values that contain spaces.			#
#										#
#################################################################################

#################################################################################
# Server Major Settings								#
#-------------------------------------------------------------------------------#
# This is a comma delimited list of hostnames that the server should
# listen on.  It might be useful to make an internal-only server on a
# gateway machine for example.  If the list is not set or if it has a
# entry with no host component, the server will bind to that port on all
# interfaces.
# dbs default listening port is 6114
servaddrs	= 0.0.0.0:6114

# This is a comma delimited list of game servers
#gameservlist	= your.gameserver,another.gameserver

#										#
#################################################################################

#################################################################################
# Message logs                                                                  #
#-------------------------------------------------------------------------------#
# Multiple log levels can be defined by connecting them with a comma (,)
# Available loglevels are:
#   none
#   trace
#   debug
#   info
#   warn
#   error
#   fatal
#loglevels = fatal,error,warn,info
loglevels = fatal,error,warn,info,debug,trace

#                                                                               #
#################################################################################

#################################################################################
# File and Path section								#
# Use absolute paths in these lines to avoid problems!				#
#-------------------------------------------------------------------------------#
logfile		=	/usr/local/var/d2dbs.log
logfile-gs	=	/usr/local/var/d2dbs-gs.log
charsavedir	=	/usr/local/var/charsave
charinfodir	=	/usr/local/var/charinfo
ladderdir	=	/usr/local/var/ladders
bak_charsavedir	=	/usr/local/var/bak/charsave
bak_charinfodir	=	/usr/local/var/bak/charinfo
#										#
#################################################################################

#################################################################################
# Misc										#
#-------------------------------------------------------------------------------#
#										#
# Ladder save interval
laddersave_interval	=	3600

# Time that allow characters create after it insert into ladder
# These code should be rewritted to support string formmated time
ladderinit_time		=	0

# Amount of time to delay shutting down server in seconds.
shutdown_delay          =       360

# Amount of time delay period is decremented by either a SIGTERM or SIGINT
# (control-c) signal in seconds.
shutdown_decr           =       60

# connection max idle time in seconds
idletime		=	300

# connection keep alive interval
keepalive_interval	=	60

# connection time out check interval
timeout_checkinterval	=	60

#										#
#################################################################################
