Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/dnsmasq: let init script cleanup stale pidfile
@ 2014-11-15 16:27 Jörg Krause
  2014-12-09 20:04 ` Gustavo Zacarias
  0 siblings, 1 reply; 6+ messages in thread
From: Jörg Krause @ 2014-11-15 16:27 UTC (permalink / raw)
  To: buildroot

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@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

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

end of thread, other threads:[~2014-12-10 20:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-15 16:27 [Buildroot] [PATCH 1/1] package/dnsmasq: let init script cleanup stale pidfile Jörg Krause
2014-12-09 20:04 ` Gustavo Zacarias
2014-12-09 21:35   ` Jörg Krause
2014-12-09 21:48     ` Gustavo Zacarias
2014-12-09 21:58       ` Jörg Krause
2014-12-10 20:56         ` Gustavo Zacarias

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