X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-in-11.arcor-online.net (mail-in-11.arcor-online.net [151.189.21.51]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 4CA31DC1A68 for ; Sat, 24 Mar 2012 20:45:33 +0000 (UTC) Received: from mail-in-19-z2.arcor-online.net (mail-in-19-z2.arcor-online.net [151.189.8.36]) by mx.arcor.de (Postfix) with ESMTP id 41D3235A4B4 for ; Sat, 24 Mar 2012 21:45:32 +0100 (CET) Received: from mail-in-12.arcor-online.net (mail-in-12.arcor-online.net [151.189.21.52]) by mail-in-19-z2.arcor-online.net (Postfix) with ESMTP id 41B66D79AC for ; Sat, 24 Mar 2012 21:45:32 +0100 (CET) Received: from [192.168.6.10] (85-127-183-180.dynamic.xdsl-line.inode.at [85.127.183.180]) (Authenticated sender: panthera.tigris@arcor.de) by mail-in-12.arcor-online.net (Postfix) with ESMTPA id 1BE1426453 for ; Sat, 24 Mar 2012 21:45:32 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-12.arcor-online.net 1BE1426453 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1332621932; bh=uiZyRX+vg6nr4VQVK1cQlNnOjaAfsPlzG3fKy1I8gS4=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=Nmh0FaqnBC3CJH5x/BQsg0pNV6ywOH+mYoVlmelZuD5DuGeL+VIsavjYr6XdaJxC4 rR7S2bcCP6SFmoaLiaTohsE1n1HpDgyRbQllGq9tJoo7o1zSGyJ7OnK84UVor1jHzh 2feY5xnMzwAuxTtj0t/PDKJnyQ+GG+uFlEEBFC2Y= Message-ID: <4F6E326B.3070401@arcor.de> Date: Sat, 24 Mar 2012 21:45:31 +0100 From: Der Tiger User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120316 Thunderbird/11.0 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [Patch] mini_httpd: crash on startup Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Hi, mini_httpd is quite picky about the availability of paths to the log and pid files. If those folders do not exist, e.g. because they point to an after the system boot empty tmpfs, mini_httpd (as such ACF) will crash. The patch below ensures the folders are available. Please, consider integrating it. Regards, Tiger --- /etc/init.d/mini_httpd.orig +++ /etc/init.d/mini_httpd @@ -6,0 +7 @@ +logfile=/var/log/mini_httpd/${SVCNAME}.log @@ -14,0 +16,2 @@ + mkdir -p "$(echo $pidfile | sed 's|/[^/]*$||')" + mkdir -p "$(echo $logfile | sed 's|/[^/]*$||')" @@ -17 +20 @@ - ${MINI_HTTPD_OPTS:--C /etc/${SVCNAME}.conf -l /var/log/mini_httpd/${SVCNAME}.log} + ${MINI_HTTPD_OPTS:--C /etc/${SVCNAME}.conf -l $logfile} --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---