MartinH@IP
Neuer User
- Mitglied seit
- 18 Dez 2008
- Beiträge
- 90
- Punkte für Reaktionen
- 0
- Punkte
- 0
werde es heute Abend mal ausprobieren und das Ergebnis dann posten
Erfolg oder nicht ?
GRuß, Martin - noch ohne LE37B650
werde es heute Abend mal ausprobieren und das Ergebnis dann posten
Erfolg oder nicht ?
GRuß, Martin - noch ohne LE37B650
Aber solange man im UPNP Server von AVM nichts konfigurieren kann, wirds wohl nicht gehen.
Twonky,fuppes und mediatomb kann man entsprechend für einen bestimmten client konfigurieren.
Damit geht's dann einigermaßen.
[Edit frank_m24: Sinnfreies Vollzitat gelöscht, siehe Forumregeln.]
Mediatomb läuft stabil, allerdings kann man in Videos nicht spulen.
@cashko
wie hast du es hinbekommen? ich bekomme bei start von 5.1.3 "segmentation fault", 5.1.2 funktioniert...
#!/bin/sh
#
# MediaServer Control File written by Itzchak Rehberg
# Modified for fedora/redhat by Landon Bradshaw <[email protected]>
# Adapted to Twonky 3.0 by TwonkyVision GmbH
# Adapted to Twonky 4.0 by TwonkyVision GmbH
# Adapted to Twonky 5.0 by PacketVideo
#
# This script is intended for SuSE and Fedora systems.
#
#
###############################################################################
#
### BEGIN INIT INFO
# Provides: twonkyserver
# Required-Start: $network $remote_fs
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Twonky UPnP server
### END INIT INFO
#
# Comments to support chkconfig on RedHat/Fedora Linux
# chkconfig: 345 71 29
# description: Twonky UPnP server
#
#==================================================================[ Setup ]===
[COLOR="#FF0000"]WORKDIR1="/var/media/ftp/FRITZ/twonky"[/COLOR]
WORKDIR2="`dirname $0`"
[COLOR="#FF0000"]LIBDIR="/var/media/ftp/FRITZ/twonky/lib"[/COLOR]
PIDFILE=/var/run/mediaserver.pid
#change this to 0 to disable the twonky proxy service
START_PROXY=1
#change this to 0 to disable the twonky webdav service
START_WEBDAV=1
#=================================================================[ Script ]===
stop_support_daemon() {
SUPPORT_DAEMON=$1
if [ "${SUPPORT_DAEMON}" = "" ]; then
return 12
fi
echo "Stopping ${SUPPORT_DAEMON}"
killall ${SUPPORT_DAEMON}
}
check_support_daemon() {
SUPPORT_DAEMON=$1
if [ "${SUPPORT_DAEMON}" = "" ]; then
return 12
fi
SD_PID=`ps --no-headers -o pid -C ${SUPPORT_DAEMON}`
if [ "${SD_PID}" = "" ]; then
return 0
else
return 1
fi
}
start_support_daemon() {
SUPPORT_DAEMON=$1
SUPPORT_DAEMON_WORKDIR=$2
if [ "${SUPPORT_DAEMON}" = "" ]; then
return 12
fi
check_support_daemon "${SUPPORT_DAEMON}"
DSTATUS=$?
if [ "${DSTATUS}" = "1" ]; then
echo "${SUPPORT_DAEMON} is already running."
return
fi
if [ -x "${SUPPORT_DAEMON_WORKDIR}/${SUPPORT_DAEMON}" ]; then
echo -n "Starting ${SUPPORT_DAEMON} ... "
"${SUPPORT_DAEMON_WORKDIR}/${SUPPORT_DAEMON}" &
else
echo "Warning: support deamon ${SUPPORT_DAEMON_WORKDIR}/${SUPPORT_DAEMON} not found."
fi
}
status_support_daemon() {
SUPPORT_DAEMON=$1
if [ "${SUPPORT_DAEMON}" = "" ]; then
echo "${SUPPORT_DAEMON} is disabled"
return
fi
check_support_daemon "${SUPPORT_DAEMON}"
DSTATUS=$?
if [ "${DSTATUS}" = "0" ]; then
echo "${SUPPORT_DAEMON} is not running."
return;
fi
if [ "${DSTATUS}" = "1" ]; then
echo "${SUPPORT_DAEMON} is running."
return;
fi
echo "Error checking status of ${SUPPORT_DAEMON}"
}
# Source function library.
if [ -f /etc/rc.status ]; then
# SUSE
. /etc/rc.status
rc_reset
else
# Reset commands if not available
rc_status() {
case "$1" in
-v)
true
;;
*)
false
;;
esac
echo
}
alias rc_exit=exit
fi
if [ -x "$WORKDIR1" ]; then
WORKDIR="$WORKDIR1"
else
WORKDIR="$WORKDIR2"
fi
DAEMON=twonkystarter
TWONKYSRV="${WORKDIR}/${DAEMON}"
#cd $WORKDIR
# see if we need to start the twonky proxy service
PROXY_DAEMON=
if [ "${START_PROXY}" = "1" ]; then
PROXY_DAEMON=twonkyproxy
fi
# see if we need to start the twonky webdav service
WEBDAV_DAEMON=
if [ "${START_WEBDAV}" = "1" ]; then
WEBDAV_DAEMON=twonkywebdav
fi
case "$1" in
start)
if [ -e $PIDFILE ]; then
PID=`cat $PIDFILE`
echo "Twonky server seems already be running under PID $PID"
echo "(PID file $PIDFILE already exists). Checking for process..."
running=`ps --no-headers -o "%c" -p $PID`
if ( [ "${DAEMON}" = "${running}" ] ); then
echo "Process IS running. Not started again."
else
echo "Looks like the daemon crashed: the PID does not match the daemon."
echo "Removing flag file..."
rm $PIDFILE
$0 start
exit $?
fi
exit 0
else
if [ ! -x "${TWONKYSRV}" ]; then
echo "Twonky server not found".
rc_status -u
exit $?
fi
[COLOR="#FF0000"] LD_LIBRARY_PATH=$LIBDIR:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
LD_LIBRARY_PATH=$LIBDIR;
echo "Libs gesetzt"[/COLOR]
echo -n "Starting $TWONKYSRV ... "
[COLOR="#FF0000"] "$TWONKYSRV" -D -appdata /var/media/ftp/FRITZ/twonky/twonkydb/[/COLOR]
rc_status -v
fi
start_support_daemon "${WEBDAV_DAEMON}" "${WORKDIR}"
start_support_daemon "${PROXY_DAEMON}" "${WORKDIR}"
;;
stop)
if [ ! -e $PIDFILE ]; then
echo "PID file $PIDFILE not found, stopping server anyway..."
killall -s TERM ${DAEMON}
rc_status -u
stop_support_daemon "${WEBDAV_DAEMON}"
stop_support_daemon "${PROXY_DAEMON}"
exit 3
else
echo -n "Stopping Twonky MediaServer ... "
PID=`cat $PIDFILE`
kill -s TERM $PID
rm -f $PIDFILE
rc_status -v
stop_support_daemon "${WEBDAV_DAEMON}"
stop_support_daemon "${PROXY_DAEMON}"
fi
;;
reload)
if [ ! -e $PIDFILE ]; then
echo "PID file $PIDFILE not found, stopping server anyway..."
killall -s TERM ${DAEMON}
rc_status -u
exit 3
else
echo -n "Reloading Twonky server ... "
PID=`cat $PIDFILE`
kill -s HUP $PID
rc_status -v
fi
;;
restart)
$0 stop
$0 start
;;
status)
if [ ! -e $PIDFILE ]; then
running="`ps --no-headers -o pid -C ${DAEMON}`"
if [ "${running}" = "" ]; then
echo "No Twonky server is running"
else
echo "A Twonky server seems to be running with PID ${running}, but no PID file exists."
echo "Probably no write permission for ${PIDFILE}."
fi
status_support_daemon "${WEBDAV_DAEMON}"
status_support_daemon "${PROXY_DAEMON}"
exit 0
fi
PID=`cat $PIDFILE`
running=`ps --no-headers -o "%c" -p $PID`
if ( [ "${DAEMON}" = "${running}" ] ); then
echo "Twonky server IS running."
else
echo "Looks like the daemon crashed: the PID does not match the daemon."
fi
status_support_daemon "${WEBDAV_DAEMON}"
status_support_daemon "${PROXY_DAEMON}"
;;
*)
echo ""
echo "Twonky server"
echo "------------------"
echo "Syntax:"
echo " $0 {start|stop|restart|reload|status}"
echo ""
exit 3
;;
esac
rc_exit
Starting twonkyproxy ... root@***:/var/media/ftp/FRITZ/twonky# 10:37:46:763 [Startup] - LOG_SYSTEM: upnp_ini_file_init_DATA_Dir : AppData folder - /var/twonky/twonkyserver - cannot be accessed or not writable.
10:37:46:815 [Startup] - LOG_SYSTEM: upnp_ini_file_init_DATA_Dir : AppData folder - /var/twonky/twonkyserver - cannot be accessed or not writable.
Guten Morgen,
Wo diese Pfade angepasst werden müssen habe ich noch nicht raus gefunden. Der Server läuft aber trotzdessen stabil.
Beste Grüße,
Dougi