4mula1;227269 Wrote:
> It makes me wonder, can SlimServer be made to dynamically re-read it's
> prefs file? Could you maintain a single SlimServer, but have alternate
> pref files? That would easily solve the problem (from a non-developer
> standpoint) because the library path is in there, as well as the calls
> to MySQL for which database to use.
Yes, you can start slimserver.pl (on Linux) or Slim.exe (on Windows)
with arguments.
As an example, this is how I start SlimServer on my development
machine:
With bundled MySQL server:
Code:
--------------------
slimserver.pl --prefsfile slimserver65_standalone.pref --cachedir
/var/lib/slimserver/Cache65
--------------------
With external MySQL server:
Code:
--------------------
slimserver.pl --prefsfile slimserver65.pref --cachedir
/var/lib/slimserver/Cache65
--------------------
In a standard installation the MySQL database is stored in the
Cache/MySQL directory, so if you like both installation to use the same
settings but different database, it should even be possible to just
specify the --cachedir parameter.
The parameters look a bit different if you are running the 7.0 alpha
version, but the idea is the same.
--
erland
Erland Isaksson
'My homepage' (http://erland.homeip.net) 'My download page'
(http://erland.homeip.net/download)
(Developer of 'TrackStat, SQLPlayList, DynamicPlayList, Custom Browse,
Custom Scan, Custom Skip, Multi Library and Database Query plugins'
(http://wiki.erland.homeip.net/index.php/Category:SlimServer))
------------------------------------------------------------------------
erland's Profile: http://forums.slimdevices.com/member.php?userid=3124
View this thread: http://forums.slimdevices.com/showthread.php?t=38402
_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss