Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128988 - sys-apps/ifplugd-0.28-r4 does not run "/ifplugd/ifplugd.action" when "/etc/init.d/ifplugd" is stopped
Summary: sys-apps/ifplugd-0.28-r4 does not run "/ifplugd/ifplugd.action" when "/etc/in...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-05 19:00 UTC by Juan Medin
Modified: 2006-04-06 05:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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