Reply To: pidof: not found

#6921
tiggermn
Participant

I did that and could see the file there, but when I put in the command, it still didn’t show, but I tried the following and it showed me something.

BusyBox v1.00-pre2 (2006.02.01-23:21+0000) Built-in shell (msh)
Enter ‘help’ for a list of built-in commands.

# cd /opt/etc/init.
/opt/etc/init.: bad directory
#
# cd /opt/etc/init.d
#
# ls
S50dropbear S60mt-daapd S99local
#
# cat /opt/etc/S60mt-daapd
cat: /opt/etc/S60mt-daapd: No such file or directory
#
# cat /opt/etc/init.d/S60mt-daapd
#!/bin/sh

# make sure our shared libraries are in the path.
# if we get /etc/ld.so.conf working, this export
# can be removed
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/lib

if [ -n “`pidof mt-daapd`” ] ; then
killall mt-daapd 2>/dev/null
fi

sleep 2 /opt/lib/ld.so.1 /opt/sbin/mt-daapd -c
/opt/etc/mt-daapd/mt-daapd.conf

#
#

D’oh! Good call.

There should be a linefeed afer sleep 2, and no linefeed after the -c.

like so:


sleep 2
/opt/lib/ld.so.1 /opt/sbin/mt-daapd -c /opt/etc/mt-daapd/mt-daapd.conf