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