I've installed Elasticsearch 7.6 from archive (not RPM) on Cent OS 7 and configuring it.
( I cannot use RPM release of ES in this case, due to a requrement from other software.)
Now I could launch the server via command-line and tried to make it autostart through systemd, but I couldn't.
The cause seems for me that "systemd" module is missing in the "archive" release of ES...
Is there any way to manually install the module ?
What I've tried:
copied the service unit file (/usr/lib/systemd/system/elasticsearch.service) and some related files from RPM installed environment
modified some path configurations in the unit file and env files.
systemctl start elasticsearch.service
After that, the start command will fail due to "timeout" and the ES server fell into stopped, even though it once seemed successfully launched and accessible.
So, I suspect the failure occurred by that systemd failed to catch the process status of ES.
And now, I found the "systemd" module which notifies systemd of the service status was not installed in the Linux-x64 "archive" version. It seems to be installed only in the RPM and Debian Package releases.
So, I think I can implement autostart even in the "install from archive" environment if I can install the systemd module into it.
Does anyone have any idea ?
Or I have no choice but to use OS package (RPM or DEB) if I want to configure it autostart ?