start() {
@@ -15,12 +14,13 @@ start() {
# make sure there is actually a process there...
if [ -f $PIDFILE ]; then
echo "Found $PIDFILE doing extra checks..."
- if ! ps ax | grep "wicd " | grep -q $(cat $PIDFILE) ; then
+ if [ "$(pgrep -f 'wicd-daemon')" != $(cat $PIDFILE) ]; then
print_status warning "$PIDFILE exists, but wicd is not running under
this PID"
echo "Attempting cleanup and new startup..."
rm -f $PIDFILE
else
- echo "Seems to be running..."
+ $SET_WCOL
+ print_status warning running
return 0
fi
fi
@@ -31,10 +31,13 @@ start() {
}