mherger wrote:
> I guess that's both on my
> plate then :-).
Thank you Michael:)
I forgot to attach my bootscript file:
Code:
--------------------
#!/bin/sh
# on my system, rc_base=/etc/rc.d
# Begin $rc_base/init.d/slimserver
# Based on LFS fcron bootscript
#$LastChangedBy:
#$Date: 2011-12-17
. /etc/sysconfig/rc
# Above file available at:
# http://www.linuxfromscratch.org/lfs/view/development/scripts/apds01.html
. $rc_functions
# Above file available at:
# http://www.linuxfromscratch.org/lfs/view/development/scripts/apds02.html
PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=slimserver
USER=lms
APPDIR=/usr/share/$USER
DAEMON=${APPDIR}/${NAME}.pl
GROUP=music
# substitute your music location below
AUDIODIR=/mnt/harddisk/MUSIC
PLAYLISTDIR=/mnt/harddisk/var/lib/$NAME/playlist
CACHEDIR=/mnt/harddisk/var/cache/$NAME
LOGDIR=/mnt/harddisk/var/Logs
LOGFILE=/mnt/harddisk/var/Logs/server.log
PREFSDIR=/mnt/harddisk/var/lib/$NAME
PIDFILE=/var/run/$NAME.pid
SLIMOPTS="--daemon"
DATEFORMAT="+%F %H:%M:%S"
CHARSET='en_US.ISO-8859-1'
case "$1" in
start)
boot_mesg "Starting $NAME..."
echo `date "$DATEFORMAT"` "$NAME starting." >> $LOGFILE
LANG="$CHARSET" $DAEMON \
--noimage \
--novideo \
--user $USER \
--group $GROUP \
--audiodir $AUDIODIR \
--playlistdir $PLAYLISTDIR \
--cachedir $CACHEDIR \
--logdir $LOGDIR \
--logfile $LOGFILE \
--prefsdir $PREFSDIR \
--pidfile $PIDFILE \
--charset "$CHARSET" \
$SLIMOPTS >> $LOGFILE 2>&1
evaluate_retval
;;
stop)
boot_mesg "Stopping $NAME..."
killproc -p $PIDFILE $DAEMON
echo `date "$DATEFORMAT"` "$NAME stopped." >> $LOGFILE
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
# End $rc_base/init.d/slimserver
--------------------
------------------------------------------------------------------------
bernid's Profile: http://forums.slimdevices.com/member.php?userid=37408
View this thread: http://forums.slimdevices.com/showthread.php?t=107078
_______________________________________________
beta mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/beta