I have an mt-daapd.conf file and an mt-daapd2.conf file that specify different port numbers and different libraries. How should I edit the start portion of the Linux Firefly launch script to start two instances that use those separate config files?
echo -n “Stopping $DESC: “
start-stop-daemon –stop –quiet –pidfile /var/run/$NAME.pid
–signal 2 –exec $DAEMON –oknodo
while pidof mt-daapd >/dev/null && [ $counter -lt 15 ]; do
if [ $seen -eq 0 ]; then
echo -n “Waiting for mt-daapd to terminate…”
Do I need to do anything to the stop portion so both instances get stopped?
The script I used on an old Mybook installation was easier to understand:
echo “Starting Firefly”
/usr/local/sbin/mt-daapd -c /etc/mt-daapd.conf
/usr/local/sbin/mt-daapd -c /etc/mt-daapd2.conf
echo “Stopping Firefly”
killall mt-daapd > /dev/null 2>&1