Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 128988

Summary: sys-apps/ifplugd-0.28-r4 does not run "/ifplugd/ifplugd.action" when "/etc/init.d/ifplugd" is stopped
Product: Gentoo Linux Reporter: Juan Medin <jmedin>
Component: New packagesAssignee: Roy Marples (RETIRED) <uberlord>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Juan Medin 2006-04-05 19:00:23 UTC
package: sys-apps/ifplugd-0.28-r4
File: /etc/init.d/ifplugd
Line: 139
Extract from this file:

                start-stop-daemon --stop --exec /usr/sbin/ifplugd \
                        --pidfile "/var/run/ifplugd.${iface}.pid" --signal 3
                eend $? || allstopped=false

Description:

Since SIGQUIT (--signal 3) is being sent to ifpligd to stop it, the /etc/ifplugd/ifplugd.action script is not being run on exit to turn off the interface. The man page states that;

       SIGINT, SIGTERM ifplugd will quit, possibly running the shutdown script. This is issued by passing -k to ifplugd.
       SIGQUIT ifplugd will quit, the shutdown script is never run.

The default for start-stop-daemon is to send SIGTERM which would let /etc/ifplugd/ifplugd.action execute on exit. If the user then does not want this to happen, the /etc/conf.d/ifplugd can be changed as follows;

ARGS="-q"
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-04-06 05:23:36 UTC
Fixed in -r5