after installing Elasticsearch on Debian using these instructions, I am trying to enable it as a service using this command
sudo /bin/systemctl enable elasticsearch.service
But I get this error:
elasticsearch.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable elasticsearch
The service mananger is indeed systemd
. However this doesn't seem to work, because when I check the status using this command:
systemctl status elasticsearch.service
I get: active (exited)
:
elasticsearch.service - LSB: Starts elasticsearch
Loaded: loaded (/etc/init.d/elasticsearch; generated)
Active: active (exited) since Sun 2021-07-25 22:20:49 CEST; 11min ago
Docs: man:systemd-sysv-generator(8)
Tasks: 0 (limit: 2062)
CGroup: /system.slice/elasticsearch.service
lug 25 22:20:49 raspberrypi systemd[1]: Starting LSB: Starts elasticsearch...
lug 25 22:20:49 raspberrypi elasticsearch[8236]: [warning] /etc/init.d/elasticsearch: JVM flavor 'sun6' not understood
lug 25 22:20:49 raspberrypi elasticsearch[8236]: Starting Elasticsearch Server:.
lug 25 22:20:49 raspberrypi systemd[1]: Started LSB: Starts elasticsearch.