Created attachment 153116 [details] patch to update the port to 0.9.11.12.869 Update to latest version. Also modify the rc.d script so it cleans up remaining 'Plex Plug-in' and 'Plex DLNA Server' instances.
Auto-assigned to maintainer feld@FreeBSD.org
Created attachment 153117 [details] build log
I'm taking a different approach with the rc script. I've analyzed the child processes and they don't all have the same PPID as the main Plex process, but they have the same PGID. I can do something like this instead which is much cleaner: plex_stop_precmd() { if [ -r ${pidfile} ]; then export _PLEXPID=$(cat ${pidfile}) fi } plex_stop_postcmd() { _PLEX_CHILDREN=$(pgrep -g ${_PLEXPID}) echo "Cleaning up leftover child processes." kill $sig_stop ${_PLEX_CHILDREN} wait_for_pids ${_PLEX_CHILDREN} }
A commit references this bug: Author: feld Date: Wed Feb 18 15:11:11 UTC 2015 New revision: 379209 URL: https://svnweb.freebsd.org/changeset/ports/379209 Log: Update to 0.9.11.12.869 Teach the rc script to clean up children. PR: 197768 Changes: head/multimedia/plexmediaserver-plexpass/Makefile head/multimedia/plexmediaserver-plexpass/distinfo head/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in head/multimedia/plexmediaserver-plexpass/pkg-plist