[Buildroot] [PATCH] netplug: prevent starting multiple instances of netplugd

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Jun 7 14:10:10 UTC 2018


Hello,

On Wed,  6 Jun 2018 22:36:41 -0300, Carlos Santos wrote:
> Executing "/etc/init.d/S29netplug start" multiple times resulted in
> multiple instances of netplugd.
> 
> Pass "-p /var/run/netplug.pid" to netplugd, so it creates the PID file
> that start-stop-daemon needs to know that netplugd is already running.
> Also use the pid file to stop netplugd, instead of the daemon name.
> 
> Fixes https://bugs.busybox.net/show_bug.cgi?id=10661
> 
> Reported-by: Joachim Krueger <mail2k at web.de>
> Signed-off-by: Carlos Santos <casantos at datacom.com.br>
> ---
>  package/netplug/S29netplug | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list