Arch Linux

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!
Tasklist

FS#30767 - [wicd] rc.d script doesn't actually kill the daemon

Attached to Project: Arch Linux
Opened by Ettore Chimenti (ektor-5) - Friday, 20 July 2012, 09:47 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 17 November 2012, 11:38 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Isenmann Daniel (ise)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Wicd rc.d script don't actually kill the daemon, due to a bad process name

Additional info:
* package version: wicd-1.7.2.4-3, all other packages up to date
* There is the original /etc/rc.d/wicd

#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
stat_busy "Starting wicd Daemon"
pkill -f wicd-daemon.py &> /dev/null
/usr/sbin/wicd &> /dev/null
add_daemon wicd
stat_done
;;
stop)
stat_busy "Stopping wicd Daemon"
pkill -f wicd-daemon.py &> /dev/null
rm_daemon wicd
stat_done
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0

* Here is my process list: # ps aux | grep wicd

root 389 0.3 0.2 186476 11372 ? S 10:18 0:15 /usr/bin/python2 -O /usr/share/wicd/daemon/wicd-daemon.py
root 391 0.1 0.2 101932 10792 ? S 10:18 0:05 /usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py
ektor-5 629 0.0 0.5 277304 23596 ? Sl 10:19 0:01 /usr/bin/python2 -O /usr/share/wicd/gtk/wicd-client.py -t
root 2803 0.0 0.0 29476 1232 ? Ss 10:38 0:00 wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/ace87b0b2f90 -Dwext

* The command `pkill -f wicd-daemon.py &> /dev/null` can't kill because there is no process name match and doesn't print no error string because `pkill` only returns the exit code.

* This means that wicd will close only on real shutdown, and the lock file will remain, making wicd not runnable on the next boot.

This task depends upon

Closed by  Eric Belanger (Snowman)
Saturday, 17 November 2012, 11:38 GMT
Reason for closing:  Won't fix
Additional comments about closing:  https://www.archlinux.org/news/end-of-in itscripts-support/

Loading...