# Create service unit for Auditbeat for Debian

**URL:** <https://discuss.elastic.co/t/create-service-unit-for-auditbeat-for-debian/299622>\
**Category:** Beats\
**Tags:** auditbeat\
**Created:** [March 14, 2022, 1:16pm UTC](https://discuss.elastic.co/t/create-service-unit-for-auditbeat-for-debian/299622 "2022-03-14T13:16:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![helkmaster](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@helkmaster](https://discuss.elastic.co/u/helkmaster)\
**Post date:** [March 14, 2022, 1:16pm UTC](https://discuss.elastic.co/t/create-service-unit-for-auditbeat-for-debian/299622/1 "2022-03-14T13:16:44Z")

</div>

For DEB and RPM there is by default a serivce unit when you want to start Auditbeat.

I currently work on a Debian distribution and I want to create a service unit for Auditbeat because I want to run it in the background.

When you run Auditbeat with the command ./auditbeat then the terminal window stays open as long as the process runs but I want to avoid that by running it as a service unit.

Is there anyone who did this before and could help me with settings up the service file for this?

Thanks in advance

---

<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:** [April 11, 2022, 3:17pm UTC](https://discuss.elastic.co/t/create-service-unit-for-auditbeat-for-debian/299622/2 "2022-04-11T15:17:20Z")

</div>

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