The location of the preferences file depends on the install method:
[From the wiki]
-If you are using the RedHat RPM, it is located at /etc/slimserver.conf

-On other *nix installs via a tarball, ~/.slimserver.pref 

You can specify the preferences file by using the --prefsfile command
line switch.

Code:
--------------------
    
  Usage: ./slimserver.pl [--audiodir ] [--daemon] [--stdio] [--logfile ]
  [--user ]
  [--group ]
  [--httpport  [--httpaddr ]]
  [--cliport  [--cliaddr ]]
  [--prefsfile  [--pidfile ]]
  [--d_various]
  
  --help           => Show this usage information.
  --audiodir         => The path to a directory of your MP3 files.
  --logfile        => Specify a file for error logging.
  --daemon         => Run the server in the background.
  This may only work on Unix-like systems.
  --stdio          => Use standard in and out as a command line interface 
  to the server
  --user           => Specify the user that server should run as.
  Only usable if server is started as root.
  This may only work on Unix-like systems.
  --group          => Specify the group that server should run as.
  Only usable if server is started as root.
  This may only work on Unix-like systems.
  --httpport       => Activate the web interface on the specified port.
  Set to 0 in order disable the web server.
  --httpaddr       => Activate the web interface on the specified IP address.
  --cliport        => Activate the command line interface TCP/IP interface
  on the specified port. Set to 0 in order disable the 
  command line interface server.
  --cliaddr        => Activate the command line interface TCP/IP 
  interface on the specified IP address.
  --prefsfile      => Specify the path to the preferences file
  --pidfile        => Specify where a process ID file should be stored
  --quiet          => Minimize the amount of text output
  --playeraddr     => Specify the _server's_ IP address to use to connect 
  to players
  --streamaddr     => Specify the _server's_ IP address to use to connect
  to streaming audio sources
  --nosetup        => Disable setup via http.
  
--------------------


In you script it shouldn't be necessary to cd to the slimserver
directory first.
Try the following command instead:
/usr/SlimServer_v6.2.2/slimserver.pl --daemon --prefsfile
/path/to/your/pref/file

Currently you are running slimserver as root. This is not advisable for
security reasons. Assuming you didn't install the rpm, create a user for
slimserver, make sure the SlimServer_v6.2.2 directory and files are
accessible and executable (preferences file and database cache file
must be writeable) by that user and add the --user and --group command
line switches to your script. 

-s.


-- 
slimpy
------------------------------------------------------------------------
slimpy's Profile: http://forums.slimdevices.com/member.php?userid=1524
View this thread: http://forums.slimdevices.com/showthread.php?t=23544

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

Reply via email to