The Licensing Service works with the systemd software suite by default and supports working with the SysVinit daemon. If you want to replace your SysVinit with the systemd, uninstall your old distributive with the uninstallfre.sh script and install the new distributive with the activatefre.sh script (see Installing the ABBYY FineReader Engine Library). If you want to uninstall the distributive with the systemd, while the distributive with the SysVinit is still installed, perform these commands:
- We recommend that you install (uninstall) the Licensing Service in manual mode only during Runtime installation (deinstallation). For development purposes use the standard installation and deinstallation.
- Use ABBYY FineReader Engine and Licensing Service from the same package. Otherwise, compatibility is not guaranteed.
Installing in manual mode
For Standalone installation:- Copy the files for the Licensing Service and the License Manager utility to the workstationLinux: libAbbyyZlib.so, libFineFormats.so, libFineNet.so, libFineObj.so, libPortLayer.so, libProtection.so, libProtectionConsoleUI.so, LicensingSchema.xe, ProductLicensingSchema.xe, LicensingService, and LicenseManager.Console. Copy the resource files libProtectionRes*.so for the interface languages you need, and libProtectionResShared.so
- Create a folder for storing the licensing data (%ProgramData%\ABBYY\SDK\12\Licenses folder by default). Everyone must have full access permissions on this folder.
- For Online License: Create or choose a folder in which your application searches for the license token file, and place the token file there. You may choose the %ProgramData%\ABBYY\SDK\12\Licenses folder, which is the default behavior, or another folder used for storing the licensing data. Everyone must have full access permissions on these folders.
- If necessary, specify parameters of the LocalLicenseServer in the LicensingSettings.xml file (see Working with the LicensingSettings.xml File).
- Run LicensingService:
- Create /var/run/abbyy-licensing-daemon/ folder with the read and write permissions for root user only.
- Run LicensingService with the following command line:
- Create abbyy-fre12-licensing-service.service configuration service file and place it to /etc/systemd/system/ folder. File permissions should be 664 (read & write for owner (which is root) & user group, read for others). The file example:
- Update the services list:
- Enable loading service on system startup.
- Run LicensingService.
- Create abbyy-fre12-licensing-service.sh configuration service file and place it to /etc/init.d/ folder. File permissions should be 755 (read, write, execute for owner (which is root), read & execute for user group and others). The file example:
- Enable loading service on system startup.
- Run LicensingService.
SELinux may interfere with correct operation of the Licensing Service. If you are experiencing licensing errors, try the following command line with the actual path to LicensingService:
- Install the Licensing Service on the license server:
- Copy the files for the Licensing Service and the License Manager utility to a computer, which will be used as a license serverLinux: libAbbyyZlib.so, libFineFormats.so, libFineNet.so, libFineObj.so, libPortLayer.so, libProtection.so, libProtectionConsoleUI.so, LicensingSchema.xe, ProductLicensingSchema.xe, LicensingService, and LicenseManager.Console. Copy the resource files libProtectionRes*.so for the interface languages you need, and libProtectionResShared.so
- Create a folder for storing the licensing data (%ProgramData%\ABBYY\SDK\12\Licenses folder by default). Everyone must have full access permissions on this folder.
- Create a LicensingSettings.xml file for the license server.
-
Specify in the LicensingSettings.xml file the settings according to the license type (see Working with the LicensingSettings.xml File for details):
- For Online License: OnlineLicensing tag if you want to use an Online License with a proxy server. In other cases of setting an Online License skip this step.
- Copy the configured LicensingSettings.xml file to the license server into the folder where the Licensing Service is installed.
-
Configure the connection between the license server and workstations:
- For Online License: Create or choose on all workstations a folder in which your application searches for the license token file, and place the token file there. You may choose the %ProgramData%\ABBYY\SDK\12\Licenses folder, which is the default behavior, or another folder used for storing the licensing data. Everyone must have full access permissions on these folders.
- Create the LicensingSettings.xml file for the workstations.
- Specify in the LicensingSettings.xml file the settings according to the license type (see Working with the LicensingSettings.xml File for details):
- The ServerAddress and ProtocolType attributes of the MainNetworkLicenseServer tag.
- Copy the configured LicensingSettings.xml file to all workstations into the /opt/ABBYY/FREngine12/Bin/ folder where the License Manager is installed.
- Run LicensingService as described in step 5 of Standalone installation.
- Create start_licensing_service.sh file and place it to the <FRE_installation_directory>/CommonBin/Licensing folder. The file example:
- Start the Licensing Service via the command:
