X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from localhost (unknown [187.40.228.12]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nc@alpinelinux.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id D4F4BDC1A7B; Mon, 26 Mar 2012 18:48:59 +0000 (UTC) Date: Mon, 26 Mar 2012 20:49:07 +0200 From: Natanael Copa To: Der Tiger Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [Patch] dhcpd will crash on start-up, if pid file folder does not exist Message-ID: <20120326204907.4a2261ff@alpinelinux.org> In-Reply-To: <4F6F332A.30408@arcor.de> References: <4F6F332A.30408@arcor.de> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; i686-pc-linux-gnu) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sun, 25 Mar 2012 17:00:58 +0200 Der Tiger wrote: > Hi, > > This is to prevent dhcpd to crash during boot, when the pid file is to > be created in a missing folder, eg. on a volatile disk space like a > tmpfs after boot. > > Please, consider updating the dhcpd init file. Hi, Thanks for feedback. Please see comments on mini_httpd. We should use checkpath for this. > > Kind Regards, Tiger > > --- /etc/init.d/dhcpd.orig > +++ /etc/init.d/dhcpd > @@ -73,0 +74,3 @@ > + mkdir -p "$(echo $pidfile | sed 's|/[^/]*$||')" > + chown dhcp "$(echo $pidfile | sed 's|/[^/]*$||')" > + chgrp dhcp "$(echo $pidfile | sed 's|/[^/]*$||')" > > > --- > Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org > Help: alpine-devel+help@lists.alpinelinux.org > --- > --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---