Service configuration on systemd

The RTDB services are managed with the RTDB service manager, which is handled by systemd. Other processes are not seen as service for the Linux system.

Create database

In case you need to create a new database, it can be achieved using the following command:

RTDB_Create_New_Database /path/to/database

Database scan

To initialize the database on the Linux system, you need to scan the database. To scan the database, run the command below.

RTDB_ScanDB -abp /path/to/database '*'

Service configuration

Run the following commands to install the services needed. Note that when calling "systemd enable", you need to replace the slashes with hyphens.

Common services

RTDB_CVMCServer -install /path/to/database
RTDB_Transformator -install /path/to/database
RTDB_Scheduler -install /path/to/database

Vtrin-NetServer

Vtrin-NetServer is added as a service with CSCommon_CMD.

CSCommon_Cmd -setini /path/to/database/RTDB.INI Services Vtrin-NetServer ON
CSCommon_Cmd -setini /path/to/database/RTDB.INI Vtrin-NetServer BinaryPath "mono /usr/share/cpmplus/mono/Vtrin-NetServer.exe -d" #for mono

System monitor

System Monitor is installed with the install flag. Pick one line below depending on what version you have downloaded (mono or core version).

 #For Mono
sudo mono /usr/share/cpmplus/mono/RTDB_SystemMonitor.exe --install -databasepath /path/to/database 

# For .NETcore
sudo dotnet /usr/share/cpmplus/netcore/RTDB_SystemMonitor.dll --install -databasepath /path/to/database

Starting services

Services are started with the command:

systemctl enable rtdb@/path/to/database
systemctl start rtdb@/path/to/database
📘

In case of getting error "Failed to enable unit, file rtdb@/path/to/database: Invalid argument.", try formatting path in following way.

systemctl enable rtdb@-path-to-database

Reading service logs

You can view the service logs by the following command.

journalctl -r -u [email protected]