rblaine wrote:
> Has anyone had luck with this? I'd like to run two separate slimservers
> on my solaris box - one which serves up FLAC for local clients, and the
> other which serves mp3 to the internet, where there isn't enough
> bandwidth for flac.
> 
> It's possible to configure the http server port, but not the
> "SlimProto" port number. So when the second server tries to start up,
> it gets an Address Already in Use error when it tries to bind the
> SlimProto port (3483)

I run three instances of slimserver on my linux box. You can change the
http port but the hardware players always use the same ports to connect
to slimserver so you need to run each one on a different IP.

I have three IPs assigned to my server: 192.168.1.{50,51,52}

I start each instance with a run script like this:

=============================================================
#!/bin/sh

SLIMSERVER_HOME='/home/slimserver/trunk/server'
SLIMSERVER_BIN="${SLIMSERVER_HOME}/slimserver.pl"
SLIMSERVER_CFG='/etc/sysconfig/slimserver/trunk/slimserver.conf'
SLIMSERVER_USER='slimserver'

IP='192.168.1.51'
SLIMSERVER_ARGS="--prefsfile=${SLIMSERVER_CFG} --noLogTimestamp
--httpaddr=${IP} --cliaddr=${IP} --playeraddr=${IP} --streamaddr=${IP}"

#SLIMSERVER_ARGS="--prefsfile=${SLIMSERVER_CFG} --noLogTimestamp"
#SLIMSERVER_DEBUG="--d_http"
#LC_CTYPE=en_GB.ISO-8859-1
export LC_CTYPE=en_GB.UTF-8
export HOME='/home/slimserver/trunk'

[ -x $SLIMSERVER_BIN -a -f $SLIMSERVER_CFG ] || exit 5

# make sure service can be controlled by slimserver user
chown -R ${SLIMSERVER_USER} ./supervise

exec /usr/local/bin/setuidgid $SLIMSERVER_USER $SLIMSERVER_BIN
$SLIMSERVER_ARGS $SLIMSERVER_DEBUG 2>&1
#!/bin/sh

SLIMSERVER_HOME='/home/slimserver/trunk/server'
SLIMSERVER_BIN="${SLIMSERVER_HOME}/slimserver.pl"
SLIMSERVER_CFG='/etc/sysconfig/slimserver/trunk/slimserver.conf'
SLIMSERVER_USER='slimserver'

IP='192.168.1.51'
SLIMSERVER_ARGS="--prefsfile=${SLIMSERVER_CFG} --noLogTimestamp
--httpaddr=${IP} --cliaddr=${IP} --playeraddr=${IP} --streamaddr=${IP}"

#SLIMSERVER_DEBUG="--d_http"
export LC_CTYPE=en_GB.UTF-8
export HOME='/home/slimserver/trunk'

[ -x $SLIMSERVER_BIN -a -f $SLIMSERVER_CFG ] || exit 5

# make sure service can be controlled by slimserver user
chown -R ${SLIMSERVER_USER} ./supervise

exec /usr/local/bin/setuidgid $SLIMSERVER_USER $SLIMSERVER_BIN
$SLIMSERVER_ARGS $SLIMSERVER_DEBUG 2>&1
=============================================================

HTH,

R.

_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to