You are here: Home » Reply

Reply To: svn-1489 scans my mp3s finally, but Bonjour not running

#8821

Digital Larry
Participant

OK if I kill them all as suggested, they all get killed.

Going back to /etc/init.d and invoking “mt-daapd start”, causes 4 mt-daapd processes to be launched.

[[email protected]:/etc/init.d]$ ps -Al | grep mt-daapd
140 S 99 1006 1 0 76 0 – 833 6d1d0 pts/0 00:00:00 mt-daapd
140 S 99 1007 1 0 76 0 – 1783 1fb30 pts/0 00:00:00 mt-daapd
040 S 99 1008 1007 0 76 0 – 1783 6daa0 pts/0 00:00:00 mt-daapd
040 S 99 1009 1008 0 76 0 – 1783 184160 pts/0 00:00:00 mt-daapd

Here’s the mt-daapd in /etc/init.d:

#!/bin/sh
#
# mt-daapd – startup script for itunes server
# This goes in /etc/init.d and gets run at boot-time.
#

PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin
if ! [ -x /usr/local/sbin/mt-daapd ]; then
exit 0
fi

case “$1” in

start)
if [ -x /usr/local/sbin/mt-daapd ] ; then
echo “Start services: mt-daapd”
# Put eth0 into promiscious mode elseway mt-daapd will stop after a while
ifconfig eth0 promisc
# Start mt-daapd
/sbin/start-stop-daemon –start –quiet –exec /usr/local/sbin/mt-daapd
fi
;;
stop)
echo “Stop services: mt-daapd”
/sbin/start-stop-daemon –stop –quiet –pidfile /var/run/mt-daapd.pid –signal 2
;;
restart)
echo “Restart services: mt-daapd”
/sbin/start-stop-daemon –stop –quiet –pidfile /var/run/mt-daapd.pid –signal 2
sleep 1
/sbin/start-stop-daemon –start –quiet –exec /usr/local/sbin/mt-daapd
;;
*)
echo “usage: $0 { start | stop | restart}” >&2
exit 1
;;

esac

exit 0

I’m confused.

Here’s my config file again:

[general]
web_root = /usr/local/share/mt-daapd/admin-root
port = 3689
admin_pw = mt-daapd
db_type = sqlite
db_parms = /usr/local/var/cache/mt-daapd
mp3_dir = /mnt/itunes
servername = Firefly
runas = nobody
playlist = /usr/local/etc/mt-daapd.playlist
extensions = .mp3,.m4a,.m4p
ssc_codectypes = ogg,flac,alac
ssc_prog = /usr/local/bin/mt-daapd-ssc.sh
logfile = /var/log/mt-daapd.log
scan_type = 1
debuglevel = 6
truncate = 1
[plugins]
plugin_dir = /usr/local/share/mt-daapd/plugins

Web interface still shows Bonjour as “Stopped”.