From owner-freebsd-ports-bugs@freebsd.org Wed Aug 16 12:26:48 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A4068DD8F95 for ; Wed, 16 Aug 2017 12:26:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9239F812EB for ; Wed, 16 Aug 2017 12:26:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v7GCQmiO064425 for ; Wed, 16 Aug 2017 12:26:48 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 210170] www/uwsgi: Add Emperor mode support Date: Wed, 16 Aug 2017 12:26:47 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: david@dafnet.se X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Aug 2017 12:26:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210170 --- Comment #14 from David Wahlund --- * 165:165 seems to be the reserved uwsgi uid/gid since jan https://reviews.freebsd.org/D9398. As I'm using --chown-socket to specify uid:gid I'm sure what the uid:gid is. However, it seems a good idea to user uwsgi:www instead. Making sure uwsgi has rw to socket after it has dropped = to the uwsgi user. This seems to have been solved previously by running uwsgi = as www:www. Pretty sure that's not a good idea. Also it shouldn't break anythi= ng on update. * I've found a problem with flags though. Current installations, I think (atleast I am), uses the uwsgi_flags to pass the config-file argument. This overwrites the default flags (-M -L). Seems to be impossible to pass a conf= ig file without overwriting them. Seems to work based on the only argument pas= sed not being a flag is intepreted as a config file. So the actual command is n= ow 'uwsgi ', not pretty. Maybe = put an update notice on using the new uwsgi_configfile instead. This is limited= to ini-format right now even though uwsgi supports multiple formats. Adding uwsgi_configfile_json etc might be an idea for the future. I reworked the flags handling a bit and now I'm using the start_precmd() to= set rc_flags and then concating the uwsgi_flags at the end of it. This will work with existing rc.conf settings using uwsgi_flags to specify conf-file. --=20 You are receiving this mail because: You are the assignee for the bug.=