1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00

Update to 0.9.11.12.869

Teach the rc script to clean up children.

PR:		197768
This commit is contained in:
Mark Felder 2015-02-18 15:11:09 +00:00
parent 73ea9714a6
commit 18bf501964
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=379209
4 changed files with 468 additions and 597 deletions

View File

@ -1,13 +1,13 @@
# Created by: KalleDK <plexmaintainer@k-moeller.dk>
# $FreeBSD$
PORTVERSION= 0.9.11.7.803
PORTVERSION= 0.9.11.12.869
PORTREVISION= 0
PKGNAMESUFFIX= -plexpass
MAINTAINER= feld@FreeBSD.org
PLEX_BUILD= 87d0708
PLEX_BUILD= ab1cd47
USE_RC_SUBR= ${PORTNAME}_plexpass

View File

@ -1,2 +1,2 @@
SHA256 (PlexMediaServer-0.9.11.7.803-87d0708-freebsd-amd64.tar.bz2) = a8a47df5179cb2768be9f368a3a313ad6c13da86fee69657ce833b174fe7fde8
SIZE (PlexMediaServer-0.9.11.7.803-87d0708-freebsd-amd64.tar.bz2) = 95866990
SHA256 (PlexMediaServer-0.9.11.12.869-ab1cd47-freebsd-amd64.tar.bz2) = 720a5b8f999048b72774d4e2552539b26b1d01986d615273eaa9458f48f1c0c6
SIZE (PlexMediaServer-0.9.11.12.869-ab1cd47-freebsd-amd64.tar.bz2) = 95909008

View File

@ -33,8 +33,10 @@ load_rc_config $name
command=/usr/sbin/daemon
procname="%%DATADIR%%/Plex_Media_Server"
command_args="-f ${procname}"
start_precmd=plex_precmd
pidfile=/var/run/plex/plex.pid
start_precmd=plex_precmd
stop_precmd=plex_stop_precmd
stop_postcmd=plex_stop_postcmd
plex_precmd()
{
@ -66,4 +68,19 @@ plex_precmd()
fi
}
plex_stop_precmd()
{
if [ -r ${pidfile} ]; then
export _PLEXPID=$(check_pidfile ${pidfile} ${procname})
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}
}
run_rc_command "$1"

File diff suppressed because it is too large Load Diff