Here's what I did to get slimserver 6.3.0 going on SuSE 9.3 and SuSE
10.1:

Install the RPM,  this should give you:
a slimserver user,
a slimserver group,
/etc/slimserver,
/etc/sysconfig/slimserver
/usr/local/slimserver

To start the server try:
root>  su - slimserver
slimserver>  /usr/local/slimserver/slimserver.pl

For me this failed because it didn't have "/usr/local/slimserver" in
@INC
(@INC is the list of places to look for modules)

Edit /usr/local/slimserver/slimserver.pl
and add a line  "catdir($Bin),"
(I put it just before the existing line  "catdir($Bin,'lib'),")

Now you should be able to su to  "slimserver"
and run  "/usr/local/slimserver/slimserver.pl"

It runs? You can connect to http:localhost:9000 ?
Good, now stop it by typing  ^C in the slimserver terminal window.



Let's make it start up automatically.

In startup scripts, the RPM is totally RedHat-centric and gives you 
"/etc/init.d/init.d/slimserver"
To SuSE users this is a useless file in a useless place.

Install a real SuSE  "/etc/init.d/slimserver"  there are several
versions here:
http://wiki.slimdevices.com/index.cgi?StartupScripts
I prefer my own, see the end of this posting.

Whichever you install, start slimserver with:
root> /etc/init.d/slimserver start

Make it start automatically on boot with
root> insserv slimserver

For insserv (and YaST) to work you will need the active comments near
the top of my version.
They tell when slimserver should run, what it provides and what it
needs.

Happy Listening!
michaelj

Here's my SuSE only startup file:

> cat /etc/init.d/slimserver

#!/bin/bash
#
# /etc/init.d/slimserver
#
# This shell script takes care of starting and stopping
#  the Slim streaming MP3 server on Suse Linux systems.
#
#    Version 1.0   (Works fine on SuSE9.3, 10.0, 10.1)
#       GPL Copyright Michael James   2005-11-07

### BEGIN INIT INFO
# Provides:       slimserver
# Required-Start: $network $remote_fs $syslog
# Required-Stop:
# Default-Start:  3 5
# Default-Stop:
# Description:    Starts the Slim streaming MP3 server.
### END INIT INFO

. /etc/rc.status
rc_reset

SYSCONFIG_FILE="/etc/sysconfig/slimserver"
PID_FILE="/var/run/slimserver/slimserver.pid"

if [ -f $SYSCONFIG_FILE ]; then
. $SYSCONFIG_FILE
fi

SLIMSERVER_BIN="$SLIMSERVER_HOME/slimserver.pl"

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


# See how we were called.
case "$1" in
start)
echo -n "Starting SlimServer: "
startproc -p $PID_FILE -u $SLIMSERVER_USER \
$SLIMSERVER_BIN $SLIMSERVER_ARGS
rc_status -v
;;

stop)
echo -n "Shutting down SlimServer: "
killproc -p $PID_FILE $SLIMSERVER_BIN
rc_status -v
;;

restart|reload)
$0 stop
$0 start
rc_status
;;

status)
checkproc -p $PID_FILE perl
rc_status -v
;;

*)
echo "Usage: $0 {start|stop|restart|status}"
exit 1
esac
rc_exit


-- 
treleven

No matter how much you pay for software,
you always get less than you hoped.
Unless you pay nothing, then you get more.
------------------------------------------------------------------------
treleven's Profile: http://forums.slimdevices.com/member.php?userid=6411
View this thread: http://forums.slimdevices.com/showthread.php?t=24669

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

Reply via email to