Starting a Component
To start the relayr Gateway Agent components, use the following command:
systemctl start gwa-component-name
For example, the following command starts the Modbus Protocol Adapter:
systemctl start gwa-modbus-adapter-c
You can also start a component manually, without the built-in systemd
or init.d
scripts. The following command line parameters are available:
-c
- path to the deployment configuration file.-a
- path to the application configuration file.l
- logging verbosity<1...7>
.v
- version.
Here is an example:
./gwa-modbus-adapter -c gwa-modbus-adapter-c-config.json -a gwa-modbus-adapter-application-config.json -l4
In this example, the command starts the Modbus Protocol Adapter with the following options:
deployment configuration file:
gwa-modbus-adapter-c-config.json
application configuration file:
gwa-modbus-adapter-application-config.json
logging level 4 (MAJOR)
To restart a component, e.g. to apply the configuration changes, use the following command:
systemctl restart gwa-component-name
For example, the following command restarts the Modbus Protocol Adapter:
systemctl restart gwa-modbus-adapter-c