SOLR not starting as a service (systemctl) on RHEL 9
New installation of SOLR 13.0.2.4 here. Its in and I have it running on RHEL 9, on a NFS mounted folder like I always have done. System is running SELinux in enforcing mode. I copied my solr.service from my other systems (since I used the same paths) but its not working and cannot figure out way (but it sources sooo familiar). I am able to use my install user and start/stop it perfectly, no issues.
When I try to run this using systemctl, no joy. I need another pair of eyes on this.
Service definition:
[Unit]
Description=Windchill Solr Index Search
After=network.target
[Service]
Type=forking
RemainAfterExit=no
PIDFile=<installpath>/SolrServer/solr/bin/solr-<port>.pid
ExecStart=<installpath>/SolrServer/bin/Index_Search_Server.sh
ExecReload=<installpath>/SolrServer/bin/Index_Search_Server.sh stop
ExecReload=<installpath>/SolrServer/bin/Index_Search_Server.sh start
ExecStop=<installpath>/SolrServer/bin/Index_Search_Server.sh stop
User=<installuser>
Group=<installuser>
PrivateTmp=True
LimitNOFILE=infinity
[Install]
WantedBy=multi-user.target
and here is what I get. Note there is no denials in audit.logs which is typical with SELinux. I tried audit2why but that is not it. All rights are 775.
Mar 04 17:08:04 <hostname> systemd[1]: Starting Windchill Solr Index Search...
░░ Subject: A start job for unit solr.service has begun execution
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit solr.service has begun execution.
░░
░░ The job identifier is 2090.
Mar 04 17:08:04 <hostname> systemd[2277]: solr.service: Failed to execute <installpath>/SolrServer/bin/Index_Search_Server.sh: Exec format error
Mar 04 17:08:04 <hostname> systemd[2277]: solr.service: Failed at step EXEC spawning <installpath>/SolrServer/bin/Index_Search_Server.sh: Exec format error
░░ Subject: Process <installpath>/SolrServer/bin/Index_Search_Server.sh could not be executed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ The process <installpath>/SolrServer/bin/Index_Search_Server.sh could not be executed and failed.
░░
░░ The error number returned by this process is ERRNO.
Mar 04 17:08:04 <hostname> systemd[1]: solr.service: Control process exited, code=exited, status=203/EXEC
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ An ExecStart= process belonging to unit solr.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 203.
Mar 04 17:08:04 <hostname> systemd[1]: solr.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ The unit solr.service has entered the 'failed' state with result 'exit-code'.
Mar 04 17:08:04 <hostname> systemd[1]: Failed to start Windchill Solr Index Search.
░░ Subject: A start job for unit solr.service has failed
░░ Defined-By: systemd
░░ Support: https://access.redhat.com/support
░░
░░ A start job for unit solr.service has finished with a failure.
░░
░░ The job identifier is 2090 and the job result is failed.
I tried running in permissive mode but that had no impact. I cannot see a path issue. Online says to look at shebangs but never had to touch those before. I ran chmod recursive to update rights. Anything else I can try or test.

