Score:0

elasticsearch.service is not a native service, redirecting to systemd-sysv-install

ae flag

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.
Michael Hampton avatar
cz flag
That's odd. Your elasticsearch package is using the obsolete sysv init scripts instead of systemd units. This is a serious packaging error on the part of elastic and should be reported back to them. In the meantime you can use the obsolete method.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.