If for any reason, Payara restart is required, run the command below as "strongauth" user to restart the web server. Make sure that the Payara server logs are running in a separate terminal to view any errors that might show up.
sudo systemctl restart payara
Once the command successfully returns, run the following command to verify if the server is listening on port 8181
netstat -an | grep LISTEN | grep 8181
or
nfn 8181
If for some reason, Payara does not restart successfully, check to see if there is an existing (zombie) Payara process running and kill it before trying to start Payara again.
Check for existing Payara process
shell> ps -ef | grep glassfish
Sample output: strongk+ 162719 1 2 14:23 ? 00:01:51 /usr/lib/jvm/java-21-openjdk-21.0.3.0.9-1.el9.x86_64/bin/java -cp /usr/local/strongkey/payara6/glassfish/domains/domain1/lib/ext/*:/usr/local/strongkey/payara6/glassfish/modules/glassfish.jar
In the above example the process id is 162719
If the command above shows a running Payara process, kill the current running process using the command below
shell> kill -9 162719 (pid from the above command)
Once the running process has been killed/stopped, issue the command below to restart Payara:
shell> sudo systemctl restart payara