Skip to content

glonassd.conf

Andrey Fedorov edited this page Apr 28, 2017 · 4 revisions

glonassd.conf overwiev

Main configuration file is plain text file "glonassd.conf".
If this file not in daemon directory, run daemon with parameter -c /full/path/to/config.file.
Each parameter placed in new line. Parameters grouped in sections. Strings with comments started with char ';' or '#'. Empty lines ignored.
Example:

; main server configuration section
[server]
# terminals listen interface
listen=192.168.1.1
# forward interface
transmit=192.168.1.1
# enable logging to file
log_enable=1
# max. log-file size
log_maxsize=1024K
# log-file placement and name
log_file=/var/log/glonassd.log
# ID of logged terminal (log terminal data to separate files named <ID>_xxx in <path_to_daemon>/logs dir.)
log_imei=
# database type:
# this parameter used for create the name of the loaded plugins database library file, e.g. "pg.so"
db_type=pg
# database host
db_host=192.168.1.1
# database port
db_port=5432
# database name
db_name=databasename
# database scheme (used for databases with schemes, e.g. PostgreSQL: set search_path to <db_schema>)
db_schema=public,gps
# database user
db_user=username
# database user password
db_pass=password
# socket listener queue size
socket_queue=128
# socket send/receive buffer size
socket_bufsize=2048
# read terminal messages timeout (seconds), when terminal not send parcel for this time it disconnecting
socket_timeout=360
# forward timeout (sec.) for check/transmit saved files, optimal value 1-3 sec.
forward_timeout=1
# reconnect to remote server interval (sec.), optimal value 15-30 sec.
forward_wait=30
# directory for store parcels of the terminal when forwarding it to another server and connection to this server lost
forward_files_dir=/opt/glonassd/forward
# timers, up to 3 (three) timers
# syntax: 1 of embodiments 3:
# timer=start time,period,script
# timer=start time,script
# timer=period,script
# if "script" start with "/" it is assumed the full path to script file, else daemon's start path + script file
timer=00:01:00,86400,pg_change_work_date.sql

# listeners configuration sections
# listen at the port/protocol for terminal "satlite"
# the name of the section used for create the name of the loaded plugins terminal library file, e.g. "satlite.so"
# each terminal must have unique port number and name
# the number of such sections depends on the number of terminal models taken
[satlite]
protocol=TCP
port=50101
# enable terminal processing (0-disable)
enabled=1
# enable log all messages of terminal (each terminal message stored in the "logs" dir. in separate files)
;log_all=1
# enable log processing errors for terminal parcels
;log_err=1

# forwading packets to thrid's servers
# server name=IP|name,port,net.protocol,terminal protocol
# where: net.protocol = 0 - TCP or 1 - UDP
#device protocol = [protocol name] from listeners configuration
# wialon port: http://gurtam.com/en/gps-hardware
# wialon test: http://id.wialon.net/
# orange.gps-trace: http://gps-trace.com/ru/hardware
# http://orange.gps-trace.com/
[forward]
# the name of the file contains list of forwarded terminals
list=forward.conf
# servers to forward
;wialon_egts=193.193.165.165,20629,0,egts
;orange_egts=193.193.165.166,20629,0,egts
;wialon_nis=193.193.165.165,20438,0,soap
Clone this wiki locally