Usage notes, 1 starting and stopping the daemons, 2 configuring the server – Campbell Scientific LoggerNet for Linux Installation Guide User Manual

Page 8: Starting and stopping the daemons, Configuring the server

Advertising
background image

LoggerNet for Linux Installation Guide

• Ensures that the LoggerNet working directory at

/var/opt/CampbellSci/LoggerNet is created and that the loggernet user is
the owner of that directory.

4. Usage Notes

4.1 Starting and Stopping the Daemons

The details of starting and stopping daemon processes can be distribution
specific. The daemons can be started or stopped by invoking their init scripts
with appropriate command arguments. The following example demonstrates
this using the csilgrnet daemon:

/etc/init.d/csilgrnet

start

This example shows how the service can be started. Note that this must be run
with root privileges. The daemon can be stopped by replacing the command,
start, with the command, stop. Alternatively some distributions provide a
service manager GUI application to start and stop daemons. In CentOS, this
can be accessed by choosing System | Administration | Services from the
desktop menu.

4.2 Configuring the Server

The configuration options for the server are in the csi_registry.xml file found in
/etc/opt/CampbellSci. The WorkDir value under the
HKEY_LOCAL_MACHINE/SOFTWARE/Campbell Scientific/LoggerNet/4.2
key path specifies the working directory that the LoggerNet server will use for
its configuration and data files. The IpPort value under the same key will tell
the server the TCP port on which it is to offer its service. If this value is not
specified, the value will default to a value of 6789.

If you change any of these values in the registry, it will be necessary to re-start
the server daemon in order for these changes to be effective. This process is
described in the previous section.

The AppDir and WorkDir registry values are there by default.
The IpPort registry value is not.

NOTE

The WorkDir registry value contains the software revision, and,
therefore, may differ from that shown above.

NOTE

Depending on selections made during the operating system install, a firewall
application may have been enabled by default on the Linux PC. The firewall
was enabled to protect the PC from invasion by outside, unauthorized programs
that may try to connect via a socket using TCP/IP. Remember, however, that
LoggerNet is a client-server application that uses TCP/IP as the link between
clients and the server. This means that the LoggerNet Remote clients for
Windows such as Setup, Connect, Status, RTMC, etc., need to access the
LoggerNet server on Linux via a TCP port. Therefore, you must allow remote
TCP connections for the specific server port, 6789 by default, access through

4

Advertising