Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 50F2918D28 for ; Fri, 12 Feb 2016 21:40:43 +0000 (UTC) Received: (qmail 87673 invoked by uid 500); 12 Feb 2016 21:40:42 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 87621 invoked by uid 500); 12 Feb 2016 21:40:42 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 87603 invoked by uid 99); 12 Feb 2016 21:40:42 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2016 21:40:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E59FEC1E1B for ; Fri, 12 Feb 2016 21:40:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id c2yYDGsHSOnV for ; Fri, 12 Feb 2016 21:40:41 +0000 (UTC) Received: from mail-ig0-f174.google.com (mail-ig0-f174.google.com [209.85.213.174]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id EC4E45FE03 for ; Fri, 12 Feb 2016 21:40:40 +0000 (UTC) Received: by mail-ig0-f174.google.com with SMTP id hb3so18453080igb.0 for ; Fri, 12 Feb 2016 13:40:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=0v/YncQujgX8wjyfKEQZ2GVWpfARRSoPAerHT22jltE=; b=loqutPqj6sDMH8Az0YFpYBKjGYTwLKvJ/CMJ5LeuYqp+KBfvxT6KdK7YGgn7j2Ff7z gF14T4f7YTQjUivRu+1XswICkvYNE6hgD1TCn9k21s7aWbV4zwsz4C3QDkX/r7eIgosj Wc/0XVQFoC2Jm43APll80j1TtJZwLLNcd4IuSxylhMplMSfy/HlI+Nl8V2uatNZaxZm2 clGM8XyJK61IQbg0urUyVP6jq42PxZOmjoc66Ey9obvdkDGYmLAomLv/zGpZhdzM7WP3 vpkAgXSVGm6nV2o4HSaB9FikQZk4P7e/0YdHv0cWH/cdtaQmvipfvaz+2HsKFFvTGtRI SYCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=0v/YncQujgX8wjyfKEQZ2GVWpfARRSoPAerHT22jltE=; b=XxQncmzeOkZdZO4+/mu0y+JKIhZo5EBLCzoWxmYTzomgPjIbEKAktdHo7c38eA2cAB vaP1/t3RPR2YIwCGGzI0IjSXnkSy2u4JkbbYQTE3Pfk52p+cENVuzdSeuC7ycPE+iZnR i8VuBipcVS8PitHBoOqp6//EIygjOC+Tg+v3aVPOpLMx7RW2GuL/0xCpDmK/EJ/RcDfS BVk3dvPAbjnTuqOH2WuM3e9ZYezJL2isGQcCnx7nwg/4VOuSQgFiBAWFnsKAZzQw1ODk m1PmmQlxQ2NYssCzLWHEbCWYwyBD79G7XEVrAoaBjKtF7Wtpo4SJmPhCf0ne1TKAvCHG 1RzA== X-Gm-Message-State: AG10YOQ9LNhhV2Cgy3c3R7v6LzQeCrw7bwXUt3RyLo+pS7jy9RW5pKRbFOOzwhD2lgNUS5hUo/TEZ7Mcubmo8Q== MIME-Version: 1.0 X-Received: by 10.50.41.41 with SMTP id c9mr69268igl.36.1455313240468; Fri, 12 Feb 2016 13:40:40 -0800 (PST) Received: by 10.64.1.77 with HTTP; Fri, 12 Feb 2016 13:40:40 -0800 (PST) In-Reply-To: References: Date: Fri, 12 Feb 2016 16:40:40 -0500 Message-ID: Subject: Re: rotatelogs and SIGTERM? From: Eric Covener To: Apache HTTP Server Development List Content-Type: text/plain; charset=UTF-8 I lost a sentence somewhere. On one platform I use, the default for SIGTERM writes a message to stderr. On Fri, Feb 12, 2016 at 4:37 PM, Yann Ylavic wrote: > On Fri, Feb 12, 2016 at 8:25 PM, Eric Covener wrote: >> Recall that 2.2 ran piped loggers under a shell until somewhat late in >> life, and 2.4 runs them directly [by default]. >> >> rotatelogs currently doesn't do anything to block sigterm. The >> default ahndler for sigterm writes a short message to stderr, which is >> the only reason I noticed. > > Maybe you could wrap rotatelogs in a script like: > > #!/bin/sh > trap '' TERM > /path/to/real/rotatelogs $@ > > and then use: > ErrorLog |$/path/to/my/rotatelogs.sh ... > > in httpd.conf? -- Eric Covener covener@gmail.com