flysurfer wrote:
>
> @gv200: yes, it is possible (but not by using the
> Max2Play-webinterface). Just tell each squeezelite instance to use a
> different audio-output, a different name and a different Mac-address and
> do not use the default start/stop-Script in /etc/init.d as this one uses
> just one file for the process-id. Just an example to spawn a second
> instance of squeezelite (besides the one that is already running and
> configurable through webinterface) using the console with default
> Mixer-Device (just to show how it's working):
> >
Code:
--------------------
> >
> /opt/squeezelite/squeezelite -o dmixer -n secondsqueezelite -m
ab:cd:ef:12:34:56 &
>
--------------------
> >
Thanks for the example code Flysurfer. That part of the code I already
understand how to input. The part I was having trouble with was the rest
of the startup script itself. Since I'm not really versed in Linux, I
used tried using code a startup script that I found on another website.
The code below is from a file I created and called Squeezelite2 in
/opt/squeezelite/. This code isn't working for me, can you tell where
I'm going wrong with it? Thanks
Code:
--------------------
#!/bin/sh
### BEGIN INIT INFO
# Provides: squeezelite2
# Required-Start: $syslog
# Required-Stop: $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Script to start squeezelite
# Description: Service script for squeezelite, command line squeezebox
player
### END INIT INFO
#Define some variables. LMS is the IP of your Logitech Media Server. Output
device can be found by running squeezelite -l
USER=odroid
OUTPUT=front:CARD=Headset,DEV=0
NAME=Gazebo
LMS=192.168.1.136
MAC=50:e5:49:bd:21:00
case "$1" in
start)
echo "Starting Squeezelite"
start-stop-daemon --start --quiet -b -m -p /var/run/${NAME}.pid --chuid $USER
--exec /opt/squeezelite/squeezelite -- -z -o $OUTPUT -m $MAC -n $NAME -s $LMS
;;
stop)
echo "Stopping Squeezelite"
start-stop-daemon --stop --quiet --pidfile /var/run/${NAME}.pid
rm -f /var/run/${NAME}
;;
*)
echo "Usage: /etc/init.d/squeezelite2 {start|stop}"
exit 1
;;
esac
exit 0
--------------------
I also inputted code for the script to run at startup.
Code:
--------------------
sudo chmod a+x squeezelite2
sudo update-rc.d squeezelite2 defaults
--------------------
------------------------------------------------------------------------
gv200's Profile: http://forums.slimdevices.com/member.php?userid=62942
View this thread: http://forums.slimdevices.com/showthread.php?t=101856
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins