Skip to contentSkip to conversation

New: /etc/init.d/S29netplug starts multiple instances of netplugd

Buildroot Applied bugzilla at busybox.net 1 participant 7 messages Jan 22, 2018 – Jun 21, 2018

lore
Share & tools
lore
#0 lore raw

https://bugs.busybox.net/show_bug.cgi?id=10661

Bug ID: 10661
Summary: /etc/init.d/S29netplug starts multiple instances of
netplugd
Product: buildroot
Version: 2017.11.2
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at buildroot.uclibc.org
Reporter: mail2k at web.de
CC: buildroot at uclibc.org
Target Milestone: ---

If you execute the command "/etc/init.d/S29netplug start" multiple times, you get multiple instances of netplugd.
This is not the desired behaviour. We should only have one running netplugd.

The change has to be made in package/netplug/S29netplug:
line 46:
- start-stop-daemon -S -q -p /var/run/netplugd.pid -x /sbin/netplugd
${NETPLUGDARGS}

+ start-stop-daemon -S -q -x /sbin/netplugd -- -p /var/run/netplugd.pid
${NETPLUGDARGS}

Reason:
If the start-stop-daemon gets the parameter -p /var/run/netplug.pid it will try to identify a running process by this pid-file but the file doesn't exist. As a result, every call of "/etc/init.d/S29netplug start" starts a new netplugd.

--> The parameter -p /var/run/netplug.pid must be passed to netplugd.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#1 lore raw

[Buildroot] [Bug 10661] /etc/init.d/S29netplug starts multiple instances of netplugd

https://bugs.busybox.net/show_bug.cgi?id=10661

Thomas Petazzoni <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at buildroot.uclibc |casantos at datacom.ind.br
|.org |

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#2 lore raw

[Buildroot] [Bug 10661] /etc/init.d/S29netplug starts multiple instances of netplugd

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=10661

Carlos Santos <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED

--- Comment #1 from Carlos Santos <[email protected]> --- I'm taking this.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#3 lore raw

[Buildroot] [Bug 10661] /etc/init.d/S29netplug starts multiple instances of netplugd

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=10661

Carlos Santos <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #2 from Carlos Santos <[email protected]> --- Patch submitted: https://patchwork.ozlabs.org/patch/926080/

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#4 lore raw

[Buildroot] [Bug 10661] /etc/init.d/S29netplug starts multiple instances of netplugd

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=10661

Carlos Santos <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |TEST-REQUEST

--- Comment #3 from Carlos Santos <[email protected]> --- (In reply to Carlos Santos from comment #2)

Applied to master (commit 3c6a5bdd3ed94f97afe2db9123d7117f85f654ce). Please test it and change the bug status to VERIFIED on success; otherwise report additional findings and change the status to REOPENED.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 10661] /etc/init.d/S29netplug starts multiple instances of netplugd

In reply to bugzilla at busybox.net

https://bugs.busybox.net/show_bug.cgi?id=10661

Carlos Santos <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|TEST-REQUEST                |FIXED
             Status|RESOLVED                    |CLOSED

--- Comment #4 from Carlos Santos <[email protected]> --- Closing, since the OP did not answer and nobody reported regressions.

Signature · 2 lines
You are receiving this mail because:
You are on the CC list for the bug.