~alpine/devel

1

[alpine-devel] [Patch] dhcpd will crash on start-up, if pid file folder does not exist

Details
Message ID
<4F6F332A.30408@arcor.de>
Sender timestamp
1332687658
DKIM signature
missing
Download raw message
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.

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
---
Natanael Copa <ncopa@alpinelinux.org>
Details
Message ID
<20120326204907.4a2261ff@alpinelinux.org>
In-Reply-To
<4F6F332A.30408@arcor.de> (view parent)
Sender timestamp
1332787747
DKIM signature
missing
Download raw message
On Sun, 25 Mar 2012 17:00:58 +0200
Der Tiger <der.tiger.alpine@arcor.de> 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
---
Reply to thread Export thread (mbox)