Date: Thu, 19 May 2016 15:21:37 +0000 (UTC) From: Mark Felder <feld@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r415508 - in head/multimedia/plexpy: . files Message-ID: <201605191521.u4JFLbtd003450@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: feld Date: Thu May 19 15:21:37 2016 New Revision: 415508 URL: https://svnweb.freebsd.org/changeset/ports/415508 Log: multimedia/plexpy: Warn users if no timezone is set If you run plexpy in a jail and do not set the timezone the Plexpy process will fail to start. Several users have run into this. Modified: head/multimedia/plexpy/Makefile head/multimedia/plexpy/files/plexpy.in Modified: head/multimedia/plexpy/Makefile ============================================================================== --- head/multimedia/plexpy/Makefile Thu May 19 14:52:41 2016 (r415507) +++ head/multimedia/plexpy/Makefile Thu May 19 15:21:37 2016 (r415508) @@ -3,6 +3,7 @@ PORTNAME= plexpy PORTVERSION= 1.4.0 +PORTREVISION= 1 CATEGORIES= multimedia python DISTVERSIONPREFIX=v Modified: head/multimedia/plexpy/files/plexpy.in ============================================================================== --- head/multimedia/plexpy/files/plexpy.in Thu May 19 14:52:41 2016 (r415507) +++ head/multimedia/plexpy/files/plexpy.in Thu May 19 15:21:37 2016 (r415508) @@ -25,5 +25,15 @@ pidfile=%%PREFIX%%/plexpy/plexpy.pid command_interpreter=%%PYTHON_CMD%% command=%%PREFIX%%/plexpy/PlexPy.py command_args="-d --nolaunch --pid ${pidfile}" +start_precmd=plexpy_prestart + +plexpy_prestart() +{ + if ! [ -e /etc/localtime ] ; then + echo "Plexpy needs the system timezone to be set." + echo "Please run /usr/sbin/tzsetup" + exit 1 + fi +} run_rc_command "$1"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605191521.u4JFLbtd003450>