PDA

View Full Version : Multiple slimserver installations



Des
2007-07-01, 09:50
Does anyone have a working strategy for having multiple slimserver installations on the same linux box? I don't mean multiple *running* servers; I have a working server and now I think it is time to bring the installation up to date.

I want to have 6.5.2 in a parallel setup and switch quickly between the working server and the new target server.

I'm thinking that I need two versions of /etc/sysconfig/slimserver; the current contents are:

----
# Edit this to suit your setup
SLIMSERVER_START="yes"
SLIMSERVER_USER="slimserver"
SLIMSERVER_GROUP="slimserver"
SLIMSERVER_HOME="/usr/local/slimserver"
SLIMSERVER_CFG="/etc/slimserver.conf"
SLIMSERVER_LOG="/var/log/slimserver.log"
SLIMSERVER_CACHEDIR="/var/cache/slimserver"
SLIMSERVER_ARGS="--daemon --prefsfile=$SLIMSERVER_CFG --logfile=$SLIMSERVER_LOG --cachedir=$SLIMSERVER_CACHEDIR"
----

These variables are referred to within /etc/init.d/slimserver, so I'm hoping the slimserver binaries and scripts are fully transparent to the SLIMSERVER variables. ie:

----
...
cd $SLIMSERVER_HOME
startproc -e -u $SLIMSERVER_USER -g $SLIMSERVER_GROUP $SLIMSERVER_BIN $SLIMSERVER_ARGS
...
----

I assume that I will have to use the source downloads rather than the rpms?

Any advice or experiences appreciated.

mherger
2007-07-01, 10:26
> Does anyone have a working strategy for having multiple slimserver
> installations on the same linux box? I don't mean multiple *running*
> servers; I have a working server and now I think it is time to bring
> the installation up to date.

http://wiki.slimdevices.com/index.cgi?RunningMultipleSlimServers ?

Michael

mherger
2007-07-01, 10:29
Oops, sorry, forget my first posting. I didn't fully read yours...

> I want to have 6.5.2 in a parallel setup and switch quickly between the
> working server and the new target server.

Why don't you work with two folders SlimServer6.5.2 and SlimServerX.Y and
put a symlink called slimserver pointing to the version you want?

Michael

Des
2007-07-01, 11:04
I was thinking along the lines of:

/usr/lib/slimserver/<version>/'stuff in here'
/usr/lib/slimserver/site/'shareable stuff in here'

much like emacs.

One issue is the database. Is it correct that the Db can be *completely* rebuilt from the music collections?