Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63538 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63694 invoked from network); 18 Oct 2012 23:17:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Oct 2012 23:17:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=david@davidstrauss.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=david@davidstrauss.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain davidstrauss.net from 209.85.212.42 cause and error) X-PHP-List-Original-Sender: david@davidstrauss.net X-Host-Fingerprint: 209.85.212.42 mail-vb0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:34939] helo=mail-vb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/A2-47215-7FD80805 for ; Thu, 18 Oct 2012 19:17:12 -0400 Received: by mail-vb0-f42.google.com with SMTP id fs19so10154897vbb.29 for ; Thu, 18 Oct 2012 16:17:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=davidstrauss.net; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Sw4IPj7U3fHxshxGB6lZHzymFKGDF+znM/sEk7irBLQ=; b=Ay9waun5KrWTq+sPmrJTqz5RuEP6Qt7CmUzMQEugNeEbWC5Kte9DjxAXFOO0e2InTS Fud11kAQSlUJSg6Uz1W1+RGv1DHcyHJjxJpoCJq7+2bCcxLRHB/SkiaW3ulOhIpZS4Jb phSl/JGLOZD37VTJXphCaa/A9PNAvOk3yEq7U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=Sw4IPj7U3fHxshxGB6lZHzymFKGDF+znM/sEk7irBLQ=; b=LQxsryIulKxSUcSmMxRAMcCjF9ZQmIlwCB5/1RihBRxi+qDUCsi8epBhFVZ4PXCiRF Mh+wS2pO2+U6THPA8GZnXSPAC4sgOgjaWEDC+vMaYRQgldlW9mDXhvDyWMVrajYAUu/5 XnZqJc8wTgO48/GpQxB6b33EWmhiFKdX9Q/71kGPMkKmX6VCcsBYpL1dTJOwGZbRWOJN EjS1GIHGxfrJQibTnCzqpdacYCB3a8Upcz2O+uDvLche/jA4sji7q/9Q506gay7MVw7Z uTdGFQPlbMy1MYkCm8NhLoSTIiGUvcwVbG5/RVaHU71GhrWd4KUoluY8Ftod0KQOPVRG V6Tw== Received: by 10.220.115.138 with SMTP id i10mr7876923vcq.37.1350602229174; Thu, 18 Oct 2012 16:17:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.151.229 with HTTP; Thu, 18 Oct 2012 16:16:48 -0700 (PDT) In-Reply-To: <50808B72.5030203@gmail.com> References: <50808B72.5030203@gmail.com> Date: Thu, 18 Oct 2012 16:16:48 -0700 Message-ID: To: David Muir Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmU/xYCaVvGMYc9eCk1AeRi80jTFg8nEvX20Apbmk7hOBMU7yq4v0iJ5F+cA/cZQArB1K7D Subject: Re: [PHP-DEV] [RFC] Socket activation support for PHP-FPM From: david@davidstrauss.net (David Strauss) On Thu, Oct 18, 2012 at 4:06 PM, David Muir wrote: > Upstart support would be good to have too. I'm aware of Upstart having some basic socket activation support, and I'm happy to provide advice on the PHP-FPM/Linux side for integrating it in follow-up work. All socket activation basically works the same way, in the sense of a file descriptor getting handed into the daemon. I eventually foresee either a standardization of environmental variables for handing in sockets or a "libsocketactivation" that looks for the appropriate environmental variables for your superserver or init daemon. > I take it that this would allow restarting specific pools? That would be > a really nice to have. I didn't really think about it because we've always run an instance of PHP-FPM per pool to have such capability, but that's certainly the case. If template-based services (not discussed in or related to the RFC) like those in systemd become more widespread, I'd imagine a lot of applications like nginx, Apache, and PHP-FPM could cede their internal virtual host/multi-pool models in favor of standardized provisioning of multiple instances. -- David Strauss | david@davidstrauss.net