Giter Site home page Giter Site logo

flexlm-systemd-service's Introduction

flexlm-systemd-service

This is a systemd-based service definition to run FlexLM lmgrd.

This code is provided β€œAS IS”. The developer makes no other warranties, express or implied, and hereby disclaims all implied warranties, including any warranty of merchantability and warranty of fitness for a particular purpose.

Based on the following:

Unprivileged (System) User flexlm

Create an unprivileged user, e.g. flexlm, to run the service. The following will create the user with a home directory /opt/flexlm:

useradd flexlm -b /opt -c "FlexLM User" -s /sbin/nologin --create-home --system 

FlexLM Directory Tree

Based in /opt/flexlm

  • /opt/flexlm/bin will contain all executables, except for the vendor daemons. Vendor daemons are typically named with the vendor name in all capitals, e.g. "INTEL". (Really, the daemons are just copies of lmgrd.
  • /opt/flexlm/licenses will contain all license files.

Create the directory structure:

mkdir -p /opt/flexlm/bin /opt/flexlm/licenses

Install lmgrd and Vendor Daemon(s)

The vendor should have provided a copy of the lmgrd executable, along with the vendor daemon, say it is called FOOBAR. Copy and create the appropriate links (using the make_flexlm_links.sh script):

cp lmgrd /opt/flexlm/bin
cp FOOBAR /opt/flexlm/bin
cd /opt/flexlm/bin
make_flexlm_links.sh

Install License Files

Server license files should be plain text with at .lic suffix.

cp FOO.lic /opt/flexlm/licenses

FlexLM Logging

Log in subdirectory of /var/log:

mkdir -p /var/log/lmgrd
chown -R flexlm /var/log/lmgrd
chmod -R 0744 /var/log/lmgrd

Install Service Definition File

Copy the lmgrd.service file to /etc/systemd/system/

Enable and Start Service

Use systemctl to enable and start the service:

systemctl enable lmgrd.service
systemctl start lmgrd.service

Client Setup

Users who use the license software usually have a particular environment variable set which contains the full path to the client license file, which is basically bare bones except for a line which specifies the license server, and a line saying "USE_SERVER".

flexlm-systemd-service's People

Contributors

prehensilecode avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.