PLC instances can be easily managed with rplc command-line tool.
The tool can be freely downloaded at https://github.com/eva-ics/rplc/releases
The majority of the commands require CLI tool to be executed under root.
By default, PLC instances use the system temporary directory to store their pid files, API sockets etc. This can be changed by setting PLC_VAR_DIR system environment variable.
If a custom var directory is used, the variable must be set before calling rplc command-line tool as well.
rplc register path/to/plc_binary
registers a PLC instance in systemd. Additional arguments:
rplc unregister plc_name # plc_name = binary name
unregisters a PLC instance from systemd. The PLC process is stopped if required.
The additional commands allow to list available PLC instances, get their info, stats, start, stop instances etc. The full list of available commands can be obtained with