Hello expert friend, I hope you are well, please your kind help, it happens that I have the LCA installed on a RHEL 7.9 server and when I restart the server, the LCA does not start, I have to do it manually.
Could you help me please, I need it to start automatically.
Thank you very much.
I have been able to achieve it through creating a systemd service:
As root:
-
create a file with the extension “.service” on /etc/systemd/system (for example, /etc/systemd/system/genesys-lca.service)
-
Insert the following on the file:
[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
(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)
-
Save this file
-
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.
#systemctl daemon-reload
#systemctl --now enable genesys-lca.service
(replace genesys-lca.service with the name of the file you created on step 1)
- Confirm if LCA has successfully been started as Service:
#systemctl status genesys-lca.service
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…).
Hi hsujdik
thank you for your support, I will try to do what is described, thank you, you are a genius
It worked on the first try, thank you, you’re a boss, kisses, thank you