Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Any missing directories in the log file path will be created with the permissions specified by the parameter DirectoriesPermissions. So, Atheos Gateway must have the rights to create the directories. If it is not the case, the directories must be created using another method.

The log file permissions will be set to the value of the parameter FilePermissions.

The permission values must be numerical. As an example, the permission rw-r--r shall be given as 0644. The leading zero is important which explicitly qualify an octal value.

MessagesRepositories

The exchanged messages between the POI and the Gateway are stored temporarily in a directory structure before being uploaded to the Atheos Server. The related parameters are:

Parameter

Previous Parameter

BaseDirectory

FileRepositoryBaseDir

DirectoriesPermissions

n/a

FilePermissions

n/a

The base directory is given by the parameter BaseDirectory. This parameter must be a fully qualified filename. As an example:

Code Block
BaseDirectory = /home/amadis/files

Any missing directories in the path will be created with the permissions specified by the parameter DirectoriesPermissions. So, Atheos Gateway must have the rights to create the directories. If it is not the case, the directories must be created using another method.

The sub-structure required in this directory will be created and assigned the permissions given by DirectoriesPermissions.

The permissions of the files containing the messages will be set to the value of the parameter FilePermissions.

The permission values must be numerical. As an example, the permission rw-r--r shall be given as 0644. The leading zero is important which explicitly qualify an octal value.

...

Code Block
# User under which the AtheosGW will be running.  Should not be root.
User=amadis

# Group under which the AtheosGW will be running.  Should not be root.
Group=amadis

# Log file location.  A fully qualified file name must be supplied.
LogFile=/var/log/amadis/atheosgw.log

# Address on which the server will bind (listen) to.
BindingAddress=0.0.0.0

# Server incoming connection port.
ServerPort=55554

# Maximum number of connections the server will handle before queuing 
# the other ones.
MaxConnections=10

# Incoming connection polling period in microseconds.
ListenPollingPeriod=100000

# Time in seconds the server will wait before terminating
# active connections.
ShutdownDelay=60

# File containing the server SSL certificate.
ServerCertificateFile=/etc/amadis/server03.crt

# File containing the server SSL key.  The key shall
# not be password protected.  Its protection must be
# done using the operating system build in security.
ServerPrivateKey=/etc/amadis/server.unprotected.key

# Base directory where the files used by the server
# are located which includes the messages received
# and sent to the POIs.
FileRepositoryBaseDir=/home/amadis/files

# Timeout in seconds of a connection with a POI.
SSLTimeout=60000

# Polling period of the read function while waiting
# for some data from a POI.
SSLReadWaitTimeSec=0
SSLReadWaitTimeuSec=100000

# Base directory root where the configuration files  and
# management plans for the POIs are located.
POIDataRoot=/home/amadis/poi

# Version of the Nexo TMS protocol handled by the server.
# This value is included in the Nexo messges sent to the
# POIs.  Currently, it has no effect of the behavior of
# the server.
NexoTMSProtocolVersion=6.0

# Terminal Manager Id.  This value is include in Nexo 
# messages sent to the POIs.
TerminalManagerId=ATHEOS-NPS-TMS1

# Pending connections queue length.
# If MaxConnections is reached, up to PendingConnectionQueueLength
# connections will be queued before rejecting them.
PendingConnectionQueueLength=200

...