Customize Startup Arguments for the SMART OPC UA Server - SMART System

SMART System User Guide (Latest Software Version)

Core Product
SMART System
Accessory
SMART Software Version
1.3.9

The smart-opcua service may be configured with additional startup options to suit the needs of your installation. For example, the default connection port of 4840 can be changed using the --port option.

About this task

Startup options can be modified in the smart-opcua.opts file which is located in the directory /etc/defaults. Simply edit the file and add the options needed to the SMART_OPCUA_OPTS setting.

The contents of the default smart-opcua.opts file are as follows:
# Default settings for smart-opcua
#
# Copyright (c) 2022 Wildlife Acoustics, Inc.
# All rights reserved.
#
# The opcua service accepts these options: 
#   
#   --port            TCP Listen Port [4840]
#   --certificate     Full path to the certificate .der file [/etc/ssl/private/server_cert.der]
#   --key             Full path to the private key .pem file [/etc/ssl/private/server_key.pem]
#   --secure-channel-trust-folder   Full path to folder of secure channel trust certs [/etc/ssl/private/trust]
#   --session-trust-folder          Full path to folder of session trust certs [/etc/ssl/private/trust]
#
# For example, to override the default listening port:
#   SMART_OPCUA_OPTS="--port=35478"

SMART_OPCUA_OPTS=

Procedure

  1. As root, edit the file /etc/default/smart-opcua.opts.
  2. Edit the line containing SMART_OPCUA_OPTS and append the desired arguments.
    SMART_OPCUA_OPTS="--port=62541"
  3. Save the file, then restart the smart-opcua service using the command systemctl restart smart-opcua.
  4. Check the logs to ensure the service started successfully using the command journalctl -u smart-opcua.
  5. Press Ctrl-C to close the logs.