Messages in this thread | | | From | (Miquel van Smoorenburg) | Subject | Re: USB script | Date | 1 May 1999 12:55:58 +0200 |
| |
In article <cistron.19990429211200.B1253@uni-mainz.de>, Dominik Kubla <dominik.kubla@uni-mainz.de> wrote: >On Wed, Apr 28, 1999 at 10:29:59PM -0400, Albert D. Cahalan wrote: >> >> The file linux/drivers/usb/restart contains this line: >> UPID=`ps aux | grep uhci-control | grep -v grep | awk '{print $2}'` >> >> That isn't such a great way to do it. I suggest this for now: >> UPID=`ps auxc | grep '^root .* uhci-control$' | awk '{print $2}'` > >Even better: > >UPID=`ps -C uhci-control -o pid --no-headers`
Why can't uhci-control just write a /var/run/uhci-control.pid like most other daemons. Then you can simply kill `cat /var/run/uhci-control.pid`. Or even better, start-stop-daemon --stop --signal HUP --pidfile \ /var/run/uhci-control.pid uhci-control
Mike. -- Indifference will certainly be the downfall of mankind, but who cares?
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |