Install RLM as Service in Linux
Installing a service in Linux requires creating a script that includes functions to start, stop and restart the program that should run as a service. The system administrator must then copy and link the script in the right locations to make it start as a service at boot time.
Unfortunately, this is not completely standardized, and so the exact steps to be taken may differ slightly from distribution to distribution. The commands presented in the following work on Ubuntu 20.04 but may need to be adjusted for other distributions.
Step 1: Decide where RLM binaries, licenses and log files should be placed. You may place all files in one folder, or
Step 2: Modify the ISV options file. The RLM/Examples folder contains an example that can be used after changing the paths inside the script to the locations selected in Step 1. Place the ISV options file in the same location as the license files.
Step 3: Create a start script called e.g. rlmserver. The RLM/Examples folder contains an example script that can be used after changing the paths inside the script to the locations selected in Step 1.
Step 4: Make rlmserver executable with chmod +x rlmserver and as administrator copy the file to /etc/init.d:
sudo cp rlmserver /etc/init.d/
Step 5: You may now start rlm as a service with
sudo /etc/init.d/rlmserver start
and stop or restart it with
sudo /etc/init.d/rlmserver restart
sudo /etc/init.d/rlmserver stop
Step 6: To make the service automatically start at boot time, create a symbolic link in /etc/rc5.d, which contains symbolic links for all services that should be started at runlevel 5:
cd /etc/rc5.d
sudo ln -s ../init.d/rlmserver S98rlmserver