|
MusicMagicMixer I've installed Music Magic Mixer from http://musicip.com/mixer/index.jsp?. Basically, it indexes your music collection based on some audio algorithm so that it is 'fingerprinted.' After going through your MP3 collection, MusicIP can create mixes, custom playlists based on a song that you select. To get it started I found the following start-up script that I put as /etc/init.d/musicmagicserver
#!/bin/sh
#
# $Id$
#
# MusicMagicServer startup script
# This file should be placed in /etc/init.d.
#
# A cruel distortion of the work of Mattias Holmlund and Dan Scully
#
# Updated By: Russell Craig
set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="Predixis MusicMagic Server"
NAME=MusicMagicServer
# insert the desired user name as MMMUSER
MMMUSER=blader
export MUSICHOME=/opt/MusicMagicMixer
DAEMON=$MUSICHOME/$NAME
SCRIPTNAME=/etc/init.d/musicmagicserver
# Read config file if it is present.
if [ -r /etc/default/$NAME ]
then
. /etc/default/$NAME
fi
#
# Function that starts the daemon/service.
#
d_start() {
su - $MMMUSER -c $DAEMON" start & >/dev/null"
}
# Function that stops the daemon/service.
#
d_stop() {
su - $MMMUSER -c $DAEMON" stop & >/dev/null"
}
case "$1" in
start)
echo -n "Starting $DESC"
d_start
echo "."
;;
stop)
echo -n "Stopping $DESC"
d_stop
echo "."
;;
*)
# echo "Usage: $SCRIPTNAME {start|stop}" >&2
echo "Usage: $SCRIPTNAME {start|stop}" >&2
exit 1
;;
esac
exit 0
To register this as a startup script in ubuntu you can do
which is a Debian utility to install scripts. The option “defaults” puts a link to start musicmagicserver in run levels 2, 3, 4 and 5. (and puts a link to stop musicmagicserver into 0, 1 and 6.) If you ever would like to remove the links, you can use
|