Installing RLM Server on Linux

Dear all, a collegue of mine requested a RLM floating license Server.
Unfortunately the installation wasn’t straight forward.

so here the steps I did:

preparation
create a RLM ServiceUser:
$ sudo useradd -m -r -U svcusr-rlm
setting password for that user:
$ sudo passwd svcusr-rlm

installation
getting the software:
$ wget https://f002.backblazeb2.com/file/cubit-downloads/RLM-Server/Releases/Linux/RLM-Server-2023.4%2B36047-Lin64.sh
set execution bit:
$ sudo chmod +x RLM-Server-2023.4+36047-Lin64.sh
run the installer:
$ sudo ./RLM-Server-2023.4+36047-Lin64.sh

problem
the installer unpacks the binary, copies everything to /opt, asks for a non root user, …and FAILS!

Unpacking finished successfully
In order to run properly, the RLM service must run as a non-root user. Please enter the user to run the RLM service as:
svcusr-rlm
svcusr-rlm
sed: /opt/cf-ls/cf-ls-2023.4/rlm.sh kann nicht gelesen werden: No such file or directory
sed: /opt/cf-ls/cf-ls-2023.4/rlm.sh kann nicht gelesen werden: No such file or directory
cp: der Aufruf von stat für ‘/opt/cf-ls/cf-ls-2023.4/rlm.sh’ ist nicht möglich: No such file or directory
Fehler beim Lesen der Informationen über den Dienst rlm.sh: No such file or directory
Starting the RLM service
./RLM-Server-2023.4+36047-Lin64.sh: Zeile 218: /etc/init.d/rlm.sh: No such file or directory
You may run “/opt/cf-ls//rlm_activate -help” to get information on activating a license
you may notice the lines starting with “sed” and the last line.
the installer looks for files in:
/opt/cf-ls/cf-ls-2023.4/
but files are located in:
/opt/cf-ls/cf-ls-2023.4/license_server/

fixing it
go to “/opt/cf-ls/cf-ls-2023.4/license_server/rlm.sh” and set following parameters manually:

rlmuser=RLM_USER -> rlmuser=svcusr-rlm
rlmdir=RLM_DIR -> rlmdir=/opt/cf-ls/cf-ls-2023.4/license_server/

afterwards youre able to fire up the instance by using
/opt/cf-ls/cf-ls-2023.4/license_server/rlm.sh start or ./rlm.sh

conclusion
so we’re able to get the RLM server running…
BUT you still need a dedicated user & typing in the password manually @ startup.
which is very inconvenient & (imho) bad practice.

proposal @ Coreform
beside fixing the path issue, please consider making rlm.sh a system.d unit, which can be registered as a service and controlled by systemctrl status|start|stop|restart
So on system (re)start the RLM license server would automatically start an no dedicated user will be needed.

cheers, Sil

1 Like

I actually have the RLM-Server 2021.04 installed. It installs to /opt/RLM-Server/RLM-Server-2021.4/ and does create a system service that is automatically enabled. You can query it with systemctl status rlm.

I agree, some (more) documentation would be helpful.

1 Like

HI,

I tried to follow your advice but when I run ./rlm.sh start I have this output :

rmoretti@calcul-moretti:/opt/cf-ls/cf-ls-2023.4/license_server$ sudo ./rlm.sh start
+/opt/cf-ls/cf-ls-2023.4/license_server//rlm.dl
10/19 13:59 (rlm)
10/19 13:59 (rlm) WARNING: No license file for this host (calcul-moretti)
10/19 13:59 (rlm) The hostname in the license file(s)
10/19 13:59 (rlm) may be incorrect
10/19 13:59 (rlm)
10/19 13:59 (rlm) License files:
10/19 13:59 (rlm)
WARNING: Unable to open debug log output file /opt/cf-ls/cf-ls-2023.4/license_server//rlm.dl

10/19 13:59 (rlm) RLM License Server Version 14.1BL3
Copyright (C) 2006-2020, Reprise Software, Inc. All rights reserved.
10/19 13:59 (rlm) License server started on calcul-moretti
10/19 13:59 (rlm) Server architecture: x64_l1
10/19 13:59 (rlm) License files:
10/19 13:59 (rlm)
10/19 13:59 (rlm) Web server starting on port 5054
10/19 13:59 (rlm) Port 5053 in use, waiting…
rmoretti@calcul-moretti:/opt/cf-ls/cf-ls-2023.4/license_server$ (rlm) Cannot bind Web Server port 5054, exiting`

How I can add the floating licence ?

Thanks !

Rocco