Skip to content

Fix orphaned Vector process after stopping the agent - #10

Merged
nsweeting merged 1 commit into
mainfrom
feature/sc-229940/fix-orphaned-vector-process-after-stop-or
Nov 30, 2026
Merged

nsweeting merged 1 commit into
mainfrom
feature/sc-229940/fix-orphaned-vector-process-after-stop-or

Conversation

@dangisantosh

Copy link
Copy Markdown
Contributor

The start command ran through sh -c, so on shells like dash the shell stayed alive as Vector's parent and the tracked OS pid was the shell's. Stopping the agent signaled only the shell and left Vector running. Prefix the command with exec and run it in its own process group with kill_group so the whole group is terminated on stop.

The start command ran through `sh -c`, so on shells like dash the shell stayed
alive as Vector's parent and the tracked OS pid was the shell's. Stopping the
agent signaled only the shell and left Vector running. Prefix the command with
`exec` and run it in its own process group with kill_group so the whole group
is terminated on stop.
@nsweeting
nsweeting merged commit d52718e into main Nov 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants