From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Oct 13 11:10:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B51AC246 for ; Sun, 13 Oct 2013 11:10:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 943882E0C for ; Sun, 13 Oct 2013 11:10:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r9DBA0Kq015300 for ; Sun, 13 Oct 2013 11:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r9DBA0gO015299; Sun, 13 Oct 2013 11:10:00 GMT (envelope-from gnats) Resent-Date: Sun, 13 Oct 2013 11:10:00 GMT Resent-Message-Id: <201310131110.r9DBA0gO015299@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Azarov Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 43CF5231 for ; Sun, 13 Oct 2013 11:07:52 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 320AE2DFF for ; Sun, 13 Oct 2013 11:07:52 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r9DB7pDG006594 for ; Sun, 13 Oct 2013 11:07:51 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r9DB7oIX006490; Sun, 13 Oct 2013 11:07:50 GMT (envelope-from nobody) Message-Id: <201310131107.r9DB7oIX006490@oldred.freebsd.org> Date: Sun, 13 Oct 2013 11:07:50 GMT From: Andrew Azarov To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/182947: apache22-peruser-mpm reload fix X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 11:10:00 -0000 >Number: 182947 >Category: ports >Synopsis: apache22-peruser-mpm reload fix >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 13 11:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Andrew Azarov >Release: FreeBSD 9.1 >Organization: Azar-A Ltd. >Environment: FreeBSD 9.1-STABLE FreeBSD 9.1-STABLE #1 r245346M: Sun Jan 13 22:44:12 CET 2013 root@:/usr/obj/usr/src/sys/F amd64 >Description: Usually when you want to reload config you need to do a reload or graceful on apache22 rc file. With MPM peruser however this will yield no results because of the chroot and different users. The problem cannot be fixed completely (well it can, but will require a dance with configurations in chroot). HOWEVER you can do an apache22 -k restart. This does not kill the listening process (aka multiplexer in peruser notation) but just TERMs the child processes, rereads the config and starts them up again. This restart type yields this results: restart 7.24s real 2.13s user 0.51s sys newreload 2.65s real 1.48s user 0.48s sys (This is a setup with few hundred vhosts mod_perl mod_php5 and god knows what else) >How-To-Repeat: /// >Fix: 36c36 < reload_cmd="apache22_graceful" --- > reload_cmd="apache22_hrestart" 154a155,161 > apache22_hrestart() { > apache22_requirepidfile > > echo "Performing a graceful restart" > eval ${command} ${apache22_flags} -k restart > } > >Release-Note: >Audit-Trail: >Unformatted: