DSI FlexNET License Server for Linux
=====================================

Prerequisites
-------------
These are 32-bit binaries. On a 64-bit Linux system, install 32-bit support:

  Ubuntu/Debian:
    sudo apt install libc6-i386
    sudo ln -sf /lib32/ld-linux.so.2 /lib/ld-lsb.so.3

  RHEL/CentOS:
    sudo yum install glibc.i686
    sudo ln -sf /lib/ld-linux.so.2 /lib/ld-lsb.so.3

Setup
-----
1. Copy this directory to your license server (e.g., /opt/dsi-license-server/).

2. Place your license file (.lic) in the 'licenses/' subdirectory.
   Edit the license file so the SERVER line hostname matches this machine.

3. Start the server:
     ./start-server.sh

4. Check status:
     ./lmstat -c licenses/your-license.lic -a

5. Stop the server:
     ./stop-server.sh

Running as a Service (systemd)
------------------------------
Create /etc/systemd/system/dsi-license.service:

  [Unit]
  Description=DSI FlexNET License Server
  After=network.target

  [Service]
  Type=forking
  ExecStart=/opt/dsi-license-server/lmgrd -c /opt/dsi-license-server/licenses/license.lic -l /opt/dsi-license-server/lmgrd.log
  ExecStop=/opt/dsi-license-server/lmdown -c /opt/dsi-license-server/licenses/license.lic -q
  Restart=on-failure

  [Install]
  WantedBy=multi-user.target

Then:
  sudo systemctl daemon-reload
  sudo systemctl enable dsi-license
  sudo systemctl start dsi-license

Files
-----
  lmgrd           - FlexNET license manager daemon
  DSIINTL         - DSI vendor daemon
  lmutil          - FlexNET command-line utility
  lmstat          - Check license server status (symlink to lmutil)
  lmhostid        - Display host ID for license generation (symlink to lmutil)
  lmdown          - Shut down license server (symlink to lmutil)
  lmreread        - Re-read license file without restart (symlink to lmutil)
  lmver           - Display FlexNET version (symlink to lmutil)
  start-server.sh - Convenience script to start the server
  stop-server.sh  - Convenience script to stop the server
  licenses/       - Place your .lic files here

Support
-------
DSI International, Inc.
https://www.dsiintl.com
