Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#20569 - [netcfg] Can't disconnect ppp
Attached to Project:
Arch Linux
Opened by Cláudio (cvalente) - Monday, 23 August 2010, 11:57 GMT
Last edited by Allan McRae (Allan) - Saturday, 28 April 2012, 14:49 GMT
Opened by Cláudio (cvalente) - Monday, 23 August 2010, 11:57 GMT
Last edited by Allan McRae (Allan) - Saturday, 28 April 2012, 14:49 GMT
|
DetailsDescription:
When using netcfg to configure a ppp connection if while the profile is connected pppd exits then disconnecting, connecting or reconnecting the profile becomes impossible because the pid file can't be found. Steps to reproduce: Configure a netcfg ppp profile, start it, kill the pppd process associated with this profile and try to disconnect or reconnect the profile. A possible "solution"/workaround is to replace the function ppp_down in /usr/lib/network/connections/ppp with: ppp_down() { load_profile "$1" PIDFILE="/var/run/ppp-$(basename $PEER).pid" if [[ -e $PIDFILE ]]; then PID=$(head -1 "/var/run/ppp-$(basename $PEER).pid") [[ -n "$PID" ]] && kill "$(head -1 "/var/run/ppp-$(basename $PEER).pid")" fi } |
This task depends upon
Closed by Allan McRae (Allan)
Saturday, 28 April 2012, 14:49 GMT
Reason for closing: Fixed
Additional comments about closing: ://projects.archlinux.org/netcfg.git/com mit/?id=93fd21fa
Saturday, 28 April 2012, 14:49 GMT
Reason for closing: Fixed
Additional comments about closing: ://projects.archlinux.org/netcfg.git/com mit/?id=93fd21fa
The last added line is not necessary, we don't want to "kill $PID" if the PIDFILE doesn't exist.
ppp_down() {
load_profile "$1"
PIDFILE="/var/run/ppp-$(basename $PEER).pid"
if [[ -e $PIDFILE ]]; then
PID=$(head -1 $PIDFILE)
[[ -n "$PID" ]] && kill "$PID"
fi
}