important-rainbow-47551
11/09/2025, 12:10 PMtall-airline-16756
11/09/2025, 12:10 PMtall-airline-16756
11/09/2025, 12:11 PMSIGKILL command doesn’t work to stop the agent connection. It actually bypasses LiveKit’s carefully designed supervised process architecture and shutdown mechanisms. LiveKit agents are set up to ignore standard termination signals like SIGTERM at the job level, because the parent worker process is responsible for handling those signals.
To stop the agent connection properly, it’s best to use SIGTERM (for example, kill <pid>), which initiates a graceful shutdown. This way, the agent can disconnect cleanly, helping to avoid any data loss or resource issues. If you need to terminate immediately during development, you can press Ctrl+C twice to force an exit. I hope this helps, and please feel free to reach out if you have any more questions!
Sources: agents/src/cli.ts | Job lifecycle | LiveKit Docs | livekit-agents/livekit/agents/ipc/job_proc_lazy_main.py