Can I run the floating license server as a service?

Skip to main content
< All Topics
Print

Can I run the floating license server as a service?

Yes you can. One of the advantages of running the server as a service is that the user can sign out from the machine and the floating license server will keep on running.

Instructions for Exostiv software v2 license server.

This software is available with Exostiv Probe EP16000 and Exostiv Blade

Linux OS: click here to jump to instructions

Windows OS: click here to jump to instructions.

Linux OS

The license server has a GUI and always needs a X server. The solution consists in installing ‘Xvfb’ virtual frame buffer. Xvfb implements the X11 display server protocol into virtual memory without showing any screen output.

The following desciption targets Red Hat based systems. Adapt as needed for Debian based systems or others.

To install Xvfb, type : sudo dnf install xorg-x11-server-Xvfb
Following might also be needed : sudo dnf install xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi

A configuration file is used to configure the license server. See ’ExoLicSrv.cfg’ in the zip file provided at the end of this article.
Please complete the file with a valid license key, TCP port number and logging path if needed.
The script file ExoLicSrv_NoGui.sh is used to configure xvfb and will be called by systemd when the service is started.

Please copy both ’ExoLicSrv.cfg’ and ‘ExoLicSrv_NoGui.sh‘ into the license server’s installation folder.

Note for SELinux-based system.
SELinux normally prevents a service file from running an executable in /home folders.
To fix this type the following two commands :
sudo semanage fcontext -a -t bin_t /path/to/ExoLicSrv_NoGui.sh
sudo restorecon -v /path/to/ExoLicSrv_NoGui.sh

Finally, configure systemd to start the service.
Copy file ‘ExoLicSrv.service’ in /etc/systemd/system.
In the service file, set a valid username (User=) and working directory (APP_DIR=).
The working directory is the license server’s installation folder.

Reload the systemd configuration with ‘systemctl daemon-reload

The service can now be started with ‘systemctl start ExoLicSrv.service’.
Command ‘systemctl status ExoLicSrv.service’ will return the status.
Command ‘systemctl stop ExoLicSrv.service’ stops the service.

To enable the service at boot time execute ‘systemctl enable ExoLicSrv.service’.

Resources

ExoLicSrv.zip


Win 64 OS

Under Windows, installing the Exostiv License server as a service requires administrator access.

First, make sure the license has been activated with the License Server GUI application – for this, please follow the instructions in this article:
https://www.exostivlabs.com/knowledgebase/how-do-i-install-the-license-server-for-floating-licenses/

You’ll need the license key and port number used further down to configure the service.

Download and extract the following zip file. Copy the contents to the Exostiv software installation folder.
The default path on Windows is : C:\Program Files\Exostiv Labs\EXOSTIV-Probe-A-2.X.X.

Resource: ExoLicSrvSvc.zip

Open an elevated command prompt and open file ExoLicSrv.cfg. The file should have the following content:

LicenseKey = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX
PortNr = 12345
LoggingEnable = true
LoggingFolder = C:\Users\user_name\Downloads

Set the LicenseKey and PortNr values matching the ones used in the GUI application.
Set LoggingFolder to the desired logging path.

The zip files contains 3 batch files used to start, stop or restart the service.

Start the service with ExoLicSrvSvcStart.bat.
The output should be similar to :

SC] CreateService SUCCESS
[SC] ChangeServiceConfig2 SUCCESS

SERVICE_NAME: ExoLicSrvSvc
        TYPE               : 10  WIN32_OWN_PROCESS
        STATE              : 2  START_PENDING
                                (NOT_STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x7d0
        PID                : 5636
        FLAGS              :

In the Windows task manager in the ‘Services’ section you should see the service running:

You should also see ExoLicSrv.exe and ExoLicSrvSvc.exe running in the ‘Details’ section:

The License Server as a service is now running.

The Core Inserter can be used to check if a license can be leased.
If all is fine, you should see something similar to the following in the Core Inserter log window:

Final note, use ExoLicSrvSvcStop.bat to stop the service, ExoLicSrvSvcRestart.bat stops and restarts the service.

Scroll to Top