# Packetbeat.service stop-sigterm timed out. Killing

**URL:** https://discuss.elastic.co/t/packetbeat-service-stop-sigterm-timed-out-killing/199084
**Category:** Beats
**Tags:** packetbeat
**Created:** [September 11, 2019, 1:53pm UTC](https://discuss.elastic.co/t/packetbeat-service-stop-sigterm-timed-out-killing/199084 "2019-09-11T13:53:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ihjaz](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@Ihjaz](https://discuss.elastic.co/u/Ihjaz)
#### Post date: [September 11, 2019, 1:53pm UTC](https://discuss.elastic.co/t/packetbeat-service-stop-sigterm-timed-out-killing/199084/1 "2019-09-11T13:53:20Z")

</div>

Hi,

I'm using packetbeat v6.2.2 and at times I see packetbeat service not getting stopped when the stop command is run.

```
Nov 15 15:18:49 systemd[1]: Stopping packetbeat...
Nov 15 15:20:19 systemd[1]: packetbeat.service stop-sigterm timed out. Killing.
Nov 15 15:20:19 systemd[1]: packetbeat.service: main process exited, code=killed, status=9/KILL
Nov 15 15:20:19 systemd[1]: Stopped packetbeat.
Nov 15 15:20:19 systemd[1]: Unit packetbeat.service entered failed state.
Nov 15 15:20:19 systemd[1]: packetbeat.service failed.

```

The service gets killed after 90 secs.

Does anyone know why this is happening and how I can avoid this?

Not sure if these failed to connect errors has any effect on the stopping of the service.

```
packetbeat.logs
|2018-11-15T15:17:57.058-0700|ERROR|pipeline/output.go:74|Failed to connect: dial tcp 10.x.x.x:5044: getsockopt: connection refused|
|2018-11-15T15:18:20.273-0700|ERROR|pipeline/output.go:74|Failed to connect: dial tcp 10.x.x.x:5044: getsockopt: connection refused|
|2018-11-15T15:18:57.059-0700|ERROR|pipeline/output.go:74|Failed to connect: dial tcp 10.x.x.x:5044: getsockopt: connection refused|
|2018-11-15T15:19:20.274-0700|ERROR|pipeline/output.go:74|Failed to connect: dial tcp 10.x.x.x:5044: getsockopt: connection refused|
|2018-11-15T15:19:57.060-0700|ERROR|pipeline/output.go:74|Failed to connect: dial tcp 10.x.x.x:5044: getsockopt: connection refused|
```

---

<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 9, 2019, 1:53pm UTC](https://discuss.elastic.co/t/packetbeat-service-stop-sigterm-timed-out-killing/199084/2 "2019-10-09T13:53:23Z")

</div>

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