Can I run the floating license server as a service?

Yes, this feature is available from EXOSTIV Dashboard version 1.7.0.
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.

Windows OS

1. Configuration file

Since EXOSTIV Dashboard version 1.7.0, the floating license server is also provided as a service. Unlike the application, the floating license service does not provide any graphical user interface for setup – a configuration file must be provided, that contains the license server settings.

Example of floating license server service configuration file. (Click here to download the example.)

FlLicSrv.cfg

LicenseKey = AAAA-BBBB-CCCC-DDDD-EEEE-FFFF-GGGG
Replace with the floating license key that you received
PortNr = 58965
Define the TCP port number from which you’d like to serve the licenses
LoggingEnable = true
Enabling logging will generate an html file ‘ExFlLicSrvSvc.html’ where all the license server events are recorded.
LoggingFolder = C:/ServerLog/ExostivDashboard
Path to the directory where the log file is stored.

2. Starting and stopping the service

Open a Command Prompt with Administrator rights.
Locate and use the following batch files:
FlLicSrvSvcStart.bat : Starts the service with the configuration defined at 1. The configuration file must be placed at the same level as the service batch and executables.
FlLicSrvSvcStop.bat : Stops the service.
FlLicSrvSvcRestart.bat : Stops and starts the service (restarts the service).

! Under Windows, the disk from which the above commands are executed must not be a mapped drive with command ‘subst’!

Linux OS

Some of the commands below require root access.
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.

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

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

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

Finally, configure systemd to start the service.
Copy file ‘FlLicSrv.service’ in /etc/systemd/system.
In the service file, set a valid User name, working directory and command to be executed.
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 FlLicSrv.service’.
Command ‘systemctl status FlLicSrv.service’ will return the status.
Command ‘systemctl stop FlLicSrv.service’ stops the service.

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

Validated this on Ubuntu and CentOS. Both are using systemd.
The only real difference is how the Xvfb package is installed.

See also…

If you do not want to install the floating license server as a service, please check:
How do I install the license server for floating licenses?