elasticsearch.service; disabled

After upgrading to Elasticsearch 2.0 (running on Debian 8 “Jessie”), I noticed it didn’t start automatically anymore.  A service elasticsearch status returned this:

 elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled)
   Active: active (running) since Fri 2015-10-30 23:27:04 CET; 23min ago

Notice the disabled part? You need to manually enable it again.

root@kibana4:~# /bin/systemctl enable elasticsearch.service
Synchronizing state for elasticsearch.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d elasticsearch defaults
Executing /usr/sbin/update-rc.d elasticsearch enable
Created symlink from /etc/systemd/system/multi-user.target.wants/elasticsearch.service to /usr/lib/systemd/system/elasticsearch.service.
root@kibana4:~# service elasticsearch status
 elasticsearch.service - Elasticsearch
   Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled)
   Active: active (running) since Fri 2015-10-30 23:27:04 CET; 23min ago

Now it’s working fine again, starting automatically. Maybe one of you run into the same issue, here’s the solution 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *