Skip to content

Instantly share code, notes, and snippets.

@JesterEE
Last active June 4, 2018 18:20
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JesterEE/7d9c3d59aa663deeb92f to your computer and use it in GitHub Desktop.
Save JesterEE/7d9c3d59aa663deeb92f to your computer and use it in GitHub Desktop.
RHEL7 agileesofd License Server systemd service
[Unit]
Description=agileesofd License Daemon
After=network.target network.service
[Service]
User=flexlm
WorkingDirectory=/opt/Keysight/flexnet
ExecStart=/opt/Keysight/flexnet/lmgrd -c ./licenses/agileesofd.lic -l ./log/agileesofd.log
Restart=always
RestartSec=30
Type=forking
[Install]
WantedBy=multi-user.target
@JesterEE
Copy link
Author

RHEL7 agileesofd License Server systemd service

Requirements

  • RHEL7 / CentOS7 / systemd operating system
  • flexlm user created
    • Create the user, set directory, UID, GID, shell (Note: GID < 1000 as to not appear on :0 login screen)
    sudo useradd flexlm
    sudo usermod -d /opt flexlm
    sudo usermod -c "Privileged FlexLM User" flexlm
    sudo usermod -u 123 flexlm
    sudo groupmod -g 123 flexlm
    sudo usermod -s /sbin/nologin flexlm
    sudo find $WorkingDirectory -exec chown flexlm {} \;
    sudo find $WorkingDirectory -exec chgrp flexlm {} \;
  • License software downloaded from Keysight and unpacked into the WorkingDirectory
  • A valid license file
  • A valid options file [Optional]

Installation

sudo cp agileesof.service /etc/systemd/system
sudo systemctl daemon-reload
sudo systemctl enable agileesofd.service

Notes

  • The first attempt to launch the daemon may fail as the hostname may not yet be resolved.
    • Thus the Restart=always and RestartSec=TIME are important

References

@woopla
Copy link

woopla commented Feb 12, 2015

Thanks for this!

One note: you should copy the unit file to /etc/systemd/system rather than /usr/lib/systemd/system. The latter is meant for distribution-provided systemd units.

@JesterEE
Copy link
Author

@woopla You're very welcome! Thanks for that catch! Updated the instructions with that path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment