diff options
author | feld <feld@FreeBSD.org> | 2014-02-25 22:39:29 +0800 |
---|---|---|
committer | feld <feld@FreeBSD.org> | 2014-02-25 22:39:29 +0800 |
commit | 8eb69066cfe6490385040b4a4a1d4895e01bf3f8 (patch) | |
tree | 29217ef17ce871067e83a94ada2da460136e8318 /multimedia | |
parent | aeabacaf218bb49a5e784ad99c9e2629168065c5 (diff) | |
download | freebsd-ports-gnome-8eb69066cfe6490385040b4a4a1d4895e01bf3f8.tar.gz freebsd-ports-gnome-8eb69066cfe6490385040b4a4a1d4895e01bf3f8.tar.zst freebsd-ports-gnome-8eb69066cfe6490385040b4a4a1d4895e01bf3f8.zip |
Add capability to override default maximum number of plugin processes in
rc.conf. This mirrors the capability found on Linux and is only required
in rare circumstances when the user has installed 3rd party Plex agents.
Diffstat (limited to 'multimedia')
4 files changed, 10 insertions, 2 deletions
diff --git a/multimedia/plexmediaserver-plexpass/Makefile b/multimedia/plexmediaserver-plexpass/Makefile index 2370bbeb16c9..b1d9a8da7ff5 100644 --- a/multimedia/plexmediaserver-plexpass/Makefile +++ b/multimedia/plexmediaserver-plexpass/Makefile @@ -3,6 +3,7 @@ PORTNAME= plexmediaserver PORTVERSION= 0.9.9.5.411 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= http://plex.r.worldssl.net/plex-media-server/${PORTVERSION}-${PLEX_BUILD}/ PKGNAMESUFFIX= -plexpass diff --git a/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in b/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in index f6b6364547d1..3438faf400bc 100644 --- a/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in +++ b/multimedia/plexmediaserver-plexpass/files/plexmediaserver_plexpass.in @@ -15,6 +15,8 @@ # # plexmediaserver_plexpass_tmp="/tmp" # tmp directory used for the transcoding process # +# plexmediaserver_plexpass_maxplugins="6" # Maximum number of background plugin procs. May have to raise in rare cases. +# . /etc/rc.subr @@ -26,6 +28,7 @@ load_rc_config $name : ${plexmediaserver_plexpass_support_path="%%SUPPORT_PATH%%"} : ${plexmediaserver_plexpass_user="%%USERS%%"} : ${plexmediaserver_plexpass_group="%%GROUPS%%"} +: ${plexmediaserver_plexpass_maxplugins=6} extra_commands=status start_precmd=plex_precmd @@ -42,7 +45,7 @@ plex_precmd() export SCRIPTPATH="%%SCRIPT_PATH%%" export LD_LIBRARY_PATH="${SCRIPTPATH}" export PLEX_MEDIA_SERVER_HOME="${SCRIPTPATH}" - export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 + export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=${plexmediaserver_plexpass_maxplugins} export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=${plexmediaserver_plexpass_support_path} export PLEX_MEDIA_SERVER_PIDFILE=${pidfile} if ${plexmediaserver_tmp}; then export PLEX_MEDIA_SERVER_TMPDIR=${plexmediaserver_plexpass_tmp}; fi diff --git a/multimedia/plexmediaserver/Makefile b/multimedia/plexmediaserver/Makefile index eb385b741629..84ab31f7ef0b 100644 --- a/multimedia/plexmediaserver/Makefile +++ b/multimedia/plexmediaserver/Makefile @@ -3,6 +3,7 @@ PORTNAME= plexmediaserver PORTVERSION= 0.9.9.4.409 +PORTREVISION= 1 CATEGORIES= multimedia MASTER_SITES= http://plex.r.worldssl.net/plex-media-server/${PORTVERSION}-${PLEX_BUILD}/ DISTNAME= PlexMediaServer-${PORTVERSION}-${PLEX_BUILD}-freebsd-amd64 diff --git a/multimedia/plexmediaserver/files/plexmediaserver.in b/multimedia/plexmediaserver/files/plexmediaserver.in index b367eef66495..abc7d8ab21c2 100644 --- a/multimedia/plexmediaserver/files/plexmediaserver.in +++ b/multimedia/plexmediaserver/files/plexmediaserver.in @@ -15,6 +15,8 @@ # # plexmediaserver_tmp="/tmp" # tmp directory used for the transcoding process # +# plexmediaserver_maxplugins="6" # Maximum number of background plugin procs. May have to raise in rare cases. +# . /etc/rc.subr @@ -26,6 +28,7 @@ load_rc_config $name : ${plexmediaserver_support_path="%%SUPPORT_PATH%%"} : ${plexmediaserver_user="%%USERS%%"} : ${plexmediaserver_group="%%GROUPS%%"} +: ${plexmediaserver_maxplugins=6} extra_commands=status start_precmd=plex_precmd @@ -42,7 +45,7 @@ plex_precmd() export SCRIPTPATH="%%SCRIPT_PATH%%" export LD_LIBRARY_PATH="${SCRIPTPATH}" export PLEX_MEDIA_SERVER_HOME="${SCRIPTPATH}" - export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6 + export PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=${plexmediaserver_maxplugins} export PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=${plexmediaserver_support_path} export PLEX_MEDIA_SERVER_PIDFILE=${pidfile} if ${plexmediaserver_tmp}; then export PLEX_MEDIA_SERVER_TMPDIR=${plexmediaserver_tmp}; fi |