# /lib/systemd/system/filebeat.service in rpm package

**URL:** https://discuss.elastic.co/t/lib-systemd-system-filebeat-service-in-rpm-package/100184
**Category:** Beats
**Tags:** filebeat
**Created:** [September 12, 2017, 9:34am UTC](https://discuss.elastic.co/t/lib-systemd-system-filebeat-service-in-rpm-package/100184 "2017-09-12T09:34:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![caibaoying](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@caibaoying](https://discuss.elastic.co/u/caibaoying)
#### Post date: [September 12, 2017, 9:34am UTC](https://discuss.elastic.co/t/lib-systemd-system-filebeat-service-in-rpm-package/100184/1 "2017-09-12T09:34:41Z")

</div>

\*.service should be placed to /usr/lib or /etc/sysemd/system; so why filebeat.service is placed to /lib/systemd/system/? when filebeat runing, filebeat.service， whether it works or not and why?

---

<div class="post-metadata">

### Author: ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)
#### Post date: [September 12, 2017, 11:37am UTC](https://discuss.elastic.co/t/lib-systemd-system-filebeat-service-in-rpm-package/100184/2 "2017-09-12T11:37:59Z")

</div>

According to the systemd [docs](https://www.freedesktop.org/software/systemd/man/systemd.unit.html#Unit%20File%20Load%20Path) the "Units of installed packages" go to `/usr/lib/systemd/system`. Due to /lib being symlink to usr/lib the unit files are installed to the correct location. It works fine on my CentOS 7 machine.

---

<div class="post-metadata">

### Author: ![caibaoying](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@caibaoying](https://discuss.elastic.co/u/caibaoying)
#### Post date: [September 13, 2017, 1:15am UTC](https://discuss.elastic.co/t/lib-systemd-system-filebeat-service-in-rpm-package/100184/3 "2017-09-13T01:15:57Z")

</div>

Thanks a lot. Your answer solved my question.

[caibaoying3@163.com](mailto:caibaoying3@163.com)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 11, 2017, 1:21am UTC](https://discuss.elastic.co/t/lib-systemd-system-filebeat-service-in-rpm-package/100184/4 "2017-10-11T01:21:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
