" /> Service startup for GAX (Other Genesys components etc.) in Linux CentOS 7 - Genesys CTI User Forum

Author Topic: Service startup for GAX (Other Genesys components etc.) in Linux CentOS 7  (Read 4139 times)

Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
Advertisement
FlexLM:
[code][Unit]
Description=Genesys Flex License Daemon
After=network-online.target nss-lookup.target

[Service]
Type=forking
User=genesys
Group=genesys
ExecStart=/opt/genesys/flexlm/lmgrd -c /opt/genesys/flexlm/license.dat -l /var/log/genesys/flexlm/lmgrd.log
Restart=always
RestartSec=30
StandardOutput=null
StandardError=null

[Install]
WantedBy=multi-user.target
[/code]

Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
[quote author=ryusuf link=topic=12290.msg54868#msg54868 date=1651995378]

Do you use /var/run/genesys directory to store all the genesys service files? If you can, please elaborate so we can use these practices. :)

[/quote]

No, in /var/run/genesys we are getting PID files - small files where process identification numbers of genesys daemons are stored. Systemd likes it.

For systemd unit files (services) I would choose /etc/systemd/system. (https://unix.stackexchange.com/questions/224992/where-do-i-put-my-systemd-unit-file)

To be honest, I'm not the greatest Linux expert. Not sure that everything I do is according to best practices. But it is is working ;)

Offline ryusuf

  • Full Member
  • ***
  • Posts: 108
  • Karma: 0
[quote author=Janis link=topic=12290.msg54876#msg54876 date=1652081936]
[quote author=ryusuf link=topic=12290.msg54868#msg54868 date=1651995378]

Do you use /var/run/genesys directory to store all the genesys service files? If you can, please elaborate so we can use these practices. :)

[/quote]

No, in /var/run/genesys we are getting PID files - small files where process identification numbers of genesys daemons are stored. Systemd likes it.

For systemd unit files (services) I would choose /etc/systemd/system. (https://unix.stackexchange.com/questions/224992/where-do-i-put-my-systemd-unit-file)

To be honest, I'm not the greatest Linux expert. Not sure that everything I do is according to best practices. But it is is working ;)
[/quote]

Thanks, understood.  :)

The practices shared by you all will help in building the solution in a better way.

Offline ryusuf

  • Full Member
  • ***
  • Posts: 108
  • Karma: 0
[quote author=Janis link=topic=12290.msg54875#msg54875 date=1652081012]
FlexLM:
[code][Unit]
Description=Genesys Flex License Daemon
After=network-online.target nss-lookup.target

[Service]
Type=forking
User=genesys
Group=genesys
ExecStart=/opt/genesys/flexlm/lmgrd -c /opt/genesys/flexlm/license.dat -l /var/log/genesys/flexlm/lmgrd.log
Restart=always
RestartSec=30
StandardOutput=null
StandardError=null

[Install]
WantedBy=multi-user.target
[/code]
[/quote]

Thanks, let me try this out.

What i have noticed is that, whenever i start FlexLM from the GAX, it is toggling between STARTED/STOPPED. When i check the processes running for lmgrd, i could see a lot is getting created.

Does it have something to do with autostart configured in the options of FlexLM application object? is there anything additional that needs to be configured in the application object? Or we do not need to control it from autostart option in GAX?

Offline Janis

  • Full Member
  • ***
  • Posts: 123
  • Karma: 4
Never had an application object for FlexLM. Just a systemd unit file. Not sure if we can use Management Layer for any third party executable we have.

Offline ryusuf

  • Full Member
  • ***
  • Posts: 108
  • Karma: 0
[quote author=Janis link=topic=12290.msg54879#msg54879 date=1652088165]
Never had an application object for FlexLM. Just a systemd unit file. Not sure if we can use Management Layer for any third party executable we have.
[/quote]

Yes we can use Management Layer for third party executable like tomcat, cassandra, flexlm etc.

We have to create an application object of type Third Party Server and fill the command line, arguments and working directory. Under the options, we need to have a section start_stop with the option start_command and stop_command. (In case of Windows Flexlm, i had a start_command with value pointing to flexlm_start.bat file)

Inside the flexlm_start.bat file, i had the following command [b]net start "Flexlm Service" [/b](where Flexlm Service is the name of the Windows Service for Flexlm)

I have done that when using Flexlm in Windows servers.

But don't know, how it works in Linux  :)