Bug 11568 - /etc/init.d/udev uses /sbin/pidof instead of /bin/pidof
: /etc/init.d/udev uses /sbin/pidof instead of /bin/pidof
Status: RESOLVED FIXED
Product: SB Touch
Classification: Unclassified
Component: OS
: unspecified
: PC Other
: P1 normal (vote)
: 8.0.0
Assigned To: Richard Titmuss
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-31 03:33 UTC by andrew
Modified: 2009-09-08 09:15 UTC (History)
3 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrew 2009-03-31 03:33:44 UTC
Sorry, this bug does not fit component "Product Quality", but there is no better Component. See bug #11567

From /etc/init.d/udev

kill_udevd() {
        if [ -x /sbin/pidof ]; then
                pid=`/sbin/pidof -x udevd`
                [ -n "$pid" ] && kill $pid
        fi
}

however:
# ls -l /sbin/pidof
ls: /sbin/pidof: No such file or directory

but:

# ls -l /bin/pidof 
lrwxrwxrwx    1 root     root            7 Jan  1  1970 /bin/pidof -> busybox
Comment 1 andrew 2009-03-31 03:37:12 UTC
Ah!

# /bin/pidof -x udevd
/bin/pidof: invalid option -- x
BusyBox v1.7.0 (2009-03-24 13:32:15 CET) multi-call binary

Usage: pidof process-name [OPTION] [process-name ...]

List the PIDs of all processes with names that match the
names on the command line
Options:
        -s      Display only a single PID
        -o PID  Omit given pid
                Use %PPID to omit the parent pid of pidof itself


Not only is the path wrong, the command line options are also wrong!
Comment 2 James Richardson 2009-03-31 07:28:58 UTC
What firmware version is on your controller?
Comment 3 andrew 2009-03-31 07:31:40 UTC
URL: http://svn.slimdevices.com/repos/jive/7.4/trunk/squeezeos/poky
Repository Root: http://svn.slimdevices.com/repos/jive
Repository UUID: bbe22326-0783-4b3a-ac2b-7ab96b24c8d9
Revision: 4918
Node Kind: directory
Schedule: normal
Last Changed Author: richard
Last Changed Rev: 4850
Last Changed Date: 2009-03-18 20:38:51 +0100 (Wed, 18 Mar 2009)
Comment 4 Blackketter Dean 2009-07-22 09:02:09 UTC
Moving to the product SqueezePlay because this bug appears to apply to any player based on that application code.  Feel free to move it back if it's specific to the original product.
Comment 5 Richard Titmuss 2009-07-28 13:20:43 UTC
Fixed in r6827.