I understand that
systemd stores unit files at different locations for different versions of Linux. On RHEL, it's at
/usr/lib/systemd/system/, whereas on Debian-based machines it's at
However, on my Ubuntu 18.04 machine, I just installed Elasticsearch using a
.deb file, and its
systemd unit file was installed under
systemd is still able to pick it up.
$ uname -a Linux nucleolus 4.15.0-46-generic #49-Ubuntu SMP Wed Feb 6 09:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux $ sudo systemctl status elasticsearch.service ● elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: http://www.elastic.co
Note the path is
So why does a
systemd unit file at
/usr/lib/systemd/system/ still works for Ubuntu? What is the real unit file load path for Debian/Ubuntu systems?