Summary: | multimedia/plexmediaserver-plexpass 1.15.1.707_1: hangs while stopping service | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | Alexandre Labarre <freebsd.tug890> |
Component: | Individual Port(s) | Assignee: | Mark Felder <feld> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | freebsd.tug890 |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(feld) |
Version: | Latest | ||
Hardware: | amd64 | ||
OS: | Any |
Description
Alexandre Labarre
2019-02-28 11:08:23 UTC
I have never been able to reproduce this. Plex always stops cleanly, including all of the child processes. This issue is really strange, because I didn't modified the port or any file of this port. I found this thread on Plex forums https://forums.plex.tv/t/plex-tuner-service-is-not-stopping-preventing-shut-down-of-plex-service/197913/23 To solve this problem, Mikec_pt gave the solution: I tested it with success. ----- So I was actually spending some time on this today. The truth is we don’t actually handle SIGTERM on any of the chidlren for freebsd or linux (or anything that’s not windows really) This is because it should be safe to do a SIGKILL. That said the port should update the script to send -9 rather then TERM when stopping children. This is what the linux scripts do anyway. Until the port updates please update /usr/local/etc/rc.d/plexmediaserver_plexpass file: kill $sig_stop ${_PLEX_CHILDREN} TO kill -9 ${_PLEX_CHILDREN} ----- A commit references this bug: Author: feld Date: Mon Mar 25 14:44:55 UTC 2019 New revision: 496825 URL: https://svnweb.freebsd.org/changeset/ports/496825 Log: multimedia/plexmediaserver{-plexpass}: Improve service shutdown reliability Plex child worker processes don't handle TERM PR: 236104 Changes: head/multimedia/plexmediaserver/Makefile head/multimedia/plexmediaserver/files/plexmediaserver.in head/multimedia/plexmediaserver-plexpass/Makefile head/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in We'll kill the child processes with -9 now |