Matlab 2020a License Manager Boot Configuration

Installed on Virtual4.virgo.infn.it (Centos 7.X)

Installation on centos 7 differ from previous ones due to new systemd machanism behind startup service on boot.

After a classical installation of Matlab License Manager on /usr/local/MATLAB/matlab2020a/

we need to create a service in systemd environment to allow lmgrd to start at boot time and allow to start/stop using clissical command:

create a new file /etc/systemd/system/flexnet.service

[Unit]
Description=Matlab License Manager Start/Stop

[Service]
Type=forking
ExecStart=/usr/local/MATLAB/R2020a/etc/lmstart
ExecStop=/usr/local/MATLAB/R2020a/etc/lmdown
KillMode=none
Restart=on-failure
RestartSec=90
User=matlab

[Install]
WantedBy=multi-user.target
chmod 644 /etc/systemd/system/flexnet.service
systemctl daemon-reload

Selinux roles:

ausearch -c 'pickup' --raw | audit2allow -M my-pickup
semodule -i my-pickup.pp

ausearch -c 'postdrop' --raw | audit2allow -M my-postdrop
semodule -i my-postdrop.pp
Start/Stop
service start flexnet.service

service stop flexnet.service
Topic revision: r2 - 31 Mar 2020, Dibiase
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Wiki_Virgo_LSC? Send feedback