Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/dnsmasq: cleanup run-time files in init script
@ 2014-11-14 21:30 Jörg Krause
  2014-11-14 22:47 ` Arnout Vandecappelle
  0 siblings, 1 reply; 4+ messages in thread
From: Jörg Krause @ 2014-11-14 21:30 UTC (permalink / raw)
  To: buildroot

dnsmasq does not clean its run-times its run-time files after stopping with
/etc/init.d/S80dnsmasq stop. Do this manually.

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

diff --git a/package/dnsmasq/S80dnsmasq b/package/dnsmasq/S80dnsmasq
index 587751e..b29fff4 100755
--- a/package/dnsmasq/S80dnsmasq
+++ b/package/dnsmasq/S80dnsmasq
@@ -13,6 +13,9 @@ 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 run-time files
+		rm -f /var/run/dnsmasq.pid
+		rm -f /var/run/dnsmasq.leases
 		;;
 	restart|reload)
 		$0 stop
-- 
2.1.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-15 14:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-14 21:30 [Buildroot] [PATCH 1/1] package/dnsmasq: cleanup run-time files in init script Jörg Krause
2014-11-14 22:47 ` Arnout Vandecappelle
2014-11-15 13:25   ` Jörg Krause
2014-11-15 14:05     ` Jörg Krause

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox