| 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 packages | Assignee: | Roy Marples (RETIRED) <uberlord> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
Fixed in -r5 |
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"