gnump3d-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnump3d-users] Re: Gnump3d-users Digest, Vol 9, Issue 7


From: Cameron Mura
Subject: [Gnump3d-users] Re: Gnump3d-users Digest, Vol 9, Issue 7
Date: Mon, 22 Nov 2004 10:13:28 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3) Gecko/20041004

Hi Chris,

2) I only reboot every few months. When I reboot, GNUMP3d (which starts via an init script) takes several minutes to update the database, making my reboot time several minutes. I don't know if it automatically rebuilds the cache every so often based on age, or if there is some other reason, but is there anyway to get it to do this in the background, on another thread maybe, instead of holding up the start time? ...or, is there something I can do to my init script to get it to start but not hold up everything?

I also found the slowed-down reboot due to gnump3d indexing to be annoying, so used something like the attached init script. Basically just backgrounds a niced gnump3d-index process... See top of file for comments.

Cameron




=== address@hidden wrote (on 11/22/2004 08:59 AM): ===

Message: 1
Date: Sun, 21 Nov 2004 22:52:56 -0500
From: Chris Arrowood <address@hidden>
Subject: [Gnump3d-users] Errors building cache, startup time, etc
To: address@hidden
Message-ID: <address@hidden>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Steve and all,

First, thanks again Steve, for the great software.  I love it!

I do, however, have a few questions/comments for Steve or others:

(FWIW, I am running gnump3d v2.8 [CVS Info: gnump3d2 1.74 (2004/05/18)] on Perl v5.008004 on a Linux Gentoo system.)

1) In the error log, it would be nice to have a time stamp on entries. I had a 7.7m error log and no clue if the errors were recent or years old. Can it use the system logger? ...or could it be modified to insert datetime for each error msg?

2) I only reboot every few months. When I reboot, GNUMP3d (which starts via an init script) takes several minutes to update the database, making my reboot time several minutes. I don't know if it automatically rebuilds the cache every so often based on age, or if there is some other reason, but is there anyway to get it to do this in the background, on another thread maybe, instead of holding up the start time? ...or, is there something I can do to my init script to get it to start but not hold up everything?

3) When it builds the cache, I get many annoying error messages (see below).

fwatl01 gnump3d # /etc/init.d/gnump3d restart
* Stopping gnump3d... [ ok ]
* Starting gnump3d...
* Updating index of music files (may take a while for the first time)...
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1160. Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1161.
)rror: duplicate entries for (Label:  Fan club release (Xmas CD 1999)
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1164.
)rror: duplicate entries for (Source: unreleased songs, rare version, B-side
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1165. Error: duplicate entries for (Format: CD in cardboard jacket Original Factory Made)
)rror: duplicate entries for (Label:  Fan club release (Xmas CD 1999)
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1168.
)rror: duplicate entries for (Source: unreleased songs, rare version, B-side
Use of uninitialized value in pattern match dboard jacket Original Factory Made) Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1241.(m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1169. Error: duplicate entries for (Format: CD in cardboard jacket Original Factory Made)
)rror: duplicate entries for (Label:  Fan club release (Xmas CD 1999)
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1172.
)rror: duplicate entries for (Source: unreleased songs, rare version, B-side
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1173. Error: duplicate entries for (Format: CD in cardboard jacket Original Factory Made)
)rror: duplicate entries for (Label:  Fan club release (Xmas CD 1999)
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1176.
)rror: duplicate entries for (Source: unreleased songs, rare version, B-side
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1177. Error: duplicate entries for (Format: CD in cardboard jacket Original Factory Made)
)rror: duplicate entries for (Label:  Fan club release (Xmas CD 1999)
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1180.
)rror: duplicate entries for (Source: unreleased songs, rare version, B-side
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1181.Error: duplicate entries for (Format: CD in cardboard jacket Original Factory Made)
)rror: duplicate entries for (Label:  Fan club release (Xmas CD 1999)
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1184.
)rror: duplicate entries for (Source: unreleased songs, rare version, B-side
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1185. Error: duplicate entries for (Format: CD in cardboard jacket Original Factory Made)
)rror: duplicate entries for (Label:  Fan club release (Xmas CD 1999)
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1188.
)rror: duplicate entries for (Source: unreleased songs, rare version, B-side
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1189. Error: duplicate entries for (Format: CD in cardboard jacket Original Factory Made)
)rror: duplicate entries for (Label:  Fan club release (Xmas CD 1999)
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1192.
)rror: duplicate entries for (Source: unreleased songs, rare version, B-side
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1193. Error: duplicate entries for (Format: CD in cardboard jacket Original Factory Made)
)rror: duplicate entries for (Label:  Fan club release (Xmas CD 1999)
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1196.
)rror: duplicate entries for (Source: unreleased songs, rare version, B-side
Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1197. Error: duplicate entries for (Format: CD in cardboard jacket Original Factory Made) Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1241. Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line1242. Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line4981. Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line4982. Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line4983. Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line4984. Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line4985. Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line4986. Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line4987. Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line4988. Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line4989. Use of uninitialized value in pattern match (m//) at /usr/bin/gnump3d-index line 727, <CACHE> line4990.
Thanks for any answers/insights/responses any of you might have.

Chris A




--
Cameron Mura
UCSD

#!/bin/sh
#
# mp3d:        This is an init script for RedHat distribution.
#
# Author:      Colin Tinker <address@hidden>
#
# chkconfig: 345 99 9
# description: gnump3d is a streaming mp3 daemon with a built in webserver.
# pidfile: /var/run/gnump3d.pid
# config: /etc/gnump3d/gnump3d.conf
# Source function library.
#
# Changes by Cameron Mura <address@hidden> (Nov. 2003) to get this working with 
GNUMP3d v2.6:
#  * removed "--pid /var/run/gnump3d.pid" from the gnump3d command line 
invocation, as this seems
#    to be no longer supported in /usr/bin/gnump3d2 (?)
#  * set-up gnump3d-index process to autostart: it wasn't working with earlier 
version of this file,
#    or even w/ the /usr/bin/gnump3d2 command directly, if the --background 
option was included
#
. /etc/rc.d/init.d/functions

[ -f /usr/bin/gnump3d ] || exit 0
[ -f /etc/gnump3d/gnump3d.conf ] || exit 0

PATH=/sbin:/bin:$PATH

# See how we were called.
case "$1" in
  start)
        echo -n "Starting gnump3d daemon (indexing in background): "
        daemon /usr/bin/gnump3d --background
        rm -f /tmp/index.lok
        nice /usr/bin/gnump3d-index >& /dev/null &
        echo
        touch /var/lock/subsys/gnump3d
        ;;
  stop)
        echo -n "Shutting down gnump3d daemon: "
        killproc gnump3d
        echo
        rm -f /var/lock/subsys/gnump3d
        # added by CM to take care of possible gnump3d-index processes:
        if [ -f /tmp/index.lok ]; then
                echo -n "Shutting down gnump3d-index process: "
                killproc gnump3d-index
                echo
                rm -f /tmp/index.lok
        fi
        ;;
  status)
        status gnump3d
        status gnump3d-index
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  *)
        echo "Usage: gnump3d {start|stop|status|restart}"
        exit 1
esac

exit 0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]