PDA

View Full Version : All I want to do is play my music



Michael Haan
2005-03-12, 16:58
After a short hiatus, I'm back to trying to get slimserver up to drive my two squeezeboxes.  Previously, I had slimserver 5.4 running on SuSE 9.1, now trying to get 6.0 running on Gentoo.  Unpacked into /opt/slimserver and using the following /etc/init.d/slimserver:



#!/sbin/runscript



# slimserver init script for Gentoo Linux
# tested with Gentoo 1.4
#
# Copyright 2003, Roy M. Silvernail
# Released under the GPL (http://www.gnu.org)
#
# This script expects slimserver to be installed in
# /home/slimserver
#
# Note: if the server dies (right-button plugin bug,
# misbehaving stream or whatever), restart it as root with:
#
# /etc/init.d/slimserver zap
# /etc/init.d/slimserver start



depend() {
        need net
}



pidfile=/var/run/slimserver.pid
logfile=/var/log/slimserver/messages



start() {
        ebegin "Starting Slimserver"
        start-stop-daemon --start --quiet \
                --exec /opt/slimserver/slimserver.pl -- --daemon \
                --prefsfile=/etc/slimserver.pref --pidfile=${pidfile} \
                --logfile=${logfile} ${SLIMSERVER_OPTS}
        eend $? "Failed to start Slimserver"
}



stop() {
        ebegin "Stopping Slimserver"
        start-stop-daemon --stop --quiet --pidfile ${pidfile}
        eend $? "Failed to stop Slimserver"
}




Here is what I get when trying to start:




root@tibeaux (mailto:root@tibeaux) slimserver # /etc/init.d/slimserver start
 * WARNING:  "slimserver" has already been started.
root@tibeaux (mailto:root@tibeaux) slimserver # /etc/init.d/slimserver restart
 * Stopping Slimserver...
 * Failed to stop Slimserver                                                                                             [ !! ]



root@tibeaux (mailto:root@tibeaux) slimserver # ps -ef | grep slimserver
root      8046  6059  0 18:52 pts/2    00:00:00 grep slimserver
root@tibeaux (mailto:root@tibeaux) slimserver #






Any ideas?

kdf
2005-03-12, 17:02
Quoting Michael Haan <michael_haan (AT) hotmail (DOT) com>:

> Here is what I get when trying to start:
>
> root@tibeaux slimserver # /etc/init.d/slimserver start
> * WARNING: "slimserver" has already been started.
> root@tibeaux slimserver # /etc/init.d/slimserver restart
> * Stopping Slimserver...
> * Failed to stop
> Slimserver
> [ !! ]
> root@tibeaux slimserver # ps -ef | grep slimserver
> root 8046 6059 0 18:52 pts/2 00:00:00 grep slimserver
> root@tibeaux slimserver #
>
> Any ideas?

try simply running the server:
/opt/slimserver/slimserver.pl

i have no idea what gentoo does to keep track (if at all) of what has alreayd
been started)

-kdf

Dan Sully
2005-03-12, 17:11
* Michael Haan shaped the electrons to say...

> root@tibeaux slimserver # ./slimserver.pl
> Can't locate auto/Compress/Zlib/autosplit.ix in @INC (@INC contains:
> /opt/SlimServer_v2005-03-08 /opt/SlimServer_v2005-03-08/CPAN
> /opt/SlimServer_v2005-03-08/CPAN/arch/5.8.5/x86_64-linux
> /opt/SlimServer_v2005-03-08/CPAN/arch/5.8.5/x86_64-linux/auto
> /opt/SlimServer_v2005-03-08/CPAN/arch/5.8/x86_64-linux
> /opt/SlimServer_v2005-03-08/CPAN/arch/5.8/x86_64-linux/auto
> /opt/SlimServer_v2005-03-08/CPAN/arch/x86_64-linux /etc/perl
> /usr/lib/perl5/site_perl/5.8.5/x86_64-linux /usr/lib/perl5/site_perl/5.8.5
> /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/x86_64-linux
> /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl
> /usr/lib/perl5/5.8.5/x86_64-linux /usr/lib/perl5/5.8.5
> /usr/local/lib/site_perl .) at /usr/lib/perl5/5.8.5/AutoLoader.pm line

Michael - we can't include the binary modules required for every variation of
Linux distribution and CPU. Instead, we've placed the required modules up at:

http//svn.slimdevices.com/vendor/src/

You don't need Digest::MD5 & Storable for perl 5.8

We'd love it after building those if you could send back the various .so
files, so we can include them in future distributions, along with output of perl -V

Thanks.

-D
--
<dr.pox> wtf? a garbled dingbat makes java switch to DWIM?

Marc Sherman
2005-03-13, 08:09
Dan Sully wrote:
>
> We'd love it after building those if you could send back the various
> .so files, so we can include them in future distributions, along with
> output of perl -V

Are you seriously proposing shipping binaries built and submitted by
arbitrary 3rd parties? That's a _really_ serious security issue for
your clients. I'd strongly recommend against it, or at least put those
binaries in a seperate distribution file with a big warning on it.

Please tell me that you at least build your own Debian Sarge i386
binaries in-house.

- Marc

Dan Sully
2005-03-13, 11:00
* Marc Sherman shaped the electrons to say...

> Please tell me that you at least build your own Debian Sarge i386 binaries
> in-house.

We do.

-D
--
They're techno trousers, ex-NASA, fantastic for walkies!