[Buildroot] [PATCH 1/1] package/dnsmasq: let init script cleanup stale pidfile

Jörg Krause jkrause at posteo.de
Sat Nov 15 16:27:16 UTC 2014


dnsmasq does not clean up its pidfile after termination. Do this manually.

Supersedes: [PATCH 1/1] package/dnsmasq: cleanup run-time files in init script
https://patchwork.ozlabs.org/patch/411015/

Signed-off-by: Jörg Krause <jkrause at posteo.de>
---
 package/dnsmasq/S80dnsmasq | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/dnsmasq/S80dnsmasq b/package/dnsmasq/S80dnsmasq
index 587751e..ca74d8b 100755
--- a/package/dnsmasq/S80dnsmasq
+++ b/package/dnsmasq/S80dnsmasq
@@ -13,6 +13,8 @@ case "$1" in
 		echo -n "Stopping dnsmasq: "
 		start-stop-daemon -K -q -x /usr/sbin/dnsmasq
 		[ $? = 0 ] && echo "OK" || echo "FAIL"
+		# dnsmasq does not clean its pid file
+		rm -f /var/run/dnsmasq.pid
 		;;
 	restart|reload)
 		$0 stop
-- 
2.1.3



More information about the buildroot mailing list