I have been able to achieve it through creating a systemd service:
As root:
1. create a file with the extension ".service" on /etc/systemd/system (for example, /etc/systemd/system/genesys-lca.service)
2. Insert the following on the file:
[code]
[Unit]
Description=Genesys LCA
[Service]
WorkingDirectory=/app/gcti/lca
ExecStart=/app/gcti/lca/lca $SERVICE_ARGS
Environment=SERVICE_ARGS=4999
Restart=always
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=genesys-lca
User=genesys
Group=genesys
[Install]
WantedBy=multi-user.target
[/code]
(note: on the file above, replace /app/gcti/lca with the directory where your LCA is installed in both "WorkingDirectory" and "ExecStart" lines. Also, replace User=genesys and Group=genesys with the user/group that you want LCA running as)
3. Save this file
4. run the following commands (without the # that I put on the start of each line just to indicate that it should be run as root) - please ensure that LCA is NOT running before you do this.
[code]
#systemctl daemon-reload
#systemctl --now enable genesys-lca.service
[/code]
(replace genesys-lca.service with the name of the file you created on step 1)
5. Confirm if LCA has successfully been started as Service:
[code]
#systemctl status genesys-lca.service
[/code]
If you have SELinux active (check by running "getenforce" and see if it returns "Enforcing" = enabled // or "Permissive" or "Disabled" = inactive).
If SELinux is enabled, you also need a SELinux context for your LCA to be able to run as service. If that is the case, please let me know so I can also provide the steps to create/load the SELinux module for that context.
On a side note, you can add additional "Environment=VARIABLE_NAME=VARIABLE_VALUE" on the genesys-lca.service file in case you need LCA to use specific environment variables (like LD_LIBRARY_PATH, PATH, TNS_ADMIN, etc...).