Thank you for the reply.
I started out trying to modify: twonkyvision-mediaserver.ini in the \root\twonky folder and adding the dyndns name plus http.
Then I tried modifying: twonkymedia-server-default.ini by adding the dyndns domain.
Twonkymedia.cfg holds the internal ip http string but reverts.
It's been a week or so since I did this, and I'm not 100 percent positive I edited the right spot. Last in etc/init.d/ on my system there is a 97twonkyserver file this is where I tried the command line switches (reverted to default in this post), it reads:
Code: Select all
#!/bin/sh
#
# MediaServer Control File written by Itzchak Rehberg
# Modified for fedora/redhat by Landon Bradshaw <phazeforward@gmail.com>
# Adapted to TwonkyMedia 3.0 by TwonkyVision GmbH
# Adapted to TwonkyMedia 4.0 by TwonkyVision GmbH
# Adapted to TwonkyMedia 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: TwonkyMedia UPnP server
### END INIT INFO
#
# Comments to support chkconfig on RedHat/Fedora Linux
# chkconfig: 345 71 29
# description: TwonkyMedia UPnP server
#
#==================================================================[ Setup ]===
WORKDIR="/twonky"
PIDFILE=/mnt/ram/mediaserver.pid
#=================================================================[ Script ]===
# 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
DAEMON=twonkymedia
TWONKYSRV="${WORKDIR}/${DAEMON}"
INIFILE="${WORKDIR}/twonkyvision-mediaserver.ini"
cd $WORKDIR
case "$1" in
start)
if [ -e $PIDFILE ]; then
PID=`cat $PIDFILE`
echo "TwonkyMedia 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 "TwonkyMedia server not found".
rc_status -u
exit $?
fi
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0
echo -n "Starting $TWONKYSRV ... "
$TWONKYSRV -D -inifile "${INIFILE}" -appdata /DataVolume/jewab/twonkymedia.db -logfile /DataVolume/jewab/twonkymedia.logs
rc_status -v
fi
;;
stop)
if [ ! -e $PIDFILE ]; then
echo "PID file $PIDFILE not found, stopping server anyway..."
killall -TERM twonkymedia
rc_status -u
exit 3
else
echo -n "Stopping Twonky MediaServer ... "
PID=`cat $PIDFILE`
kill -TERM $PID
rm -f $PIDFILE
rc_status -v
fi
;;
reload)
if [ ! -e $PIDFILE ]; then
echo "PID file $PIDFILE not found, stopping server anyway..."
killall -TERM twonkymedia
rc_status -u
exit 3
else
echo -n "Reloading Twonky server ... "
PID=`cat $PIDFILE`
kill -HUP $PID
rc_status -v
fi
;;
restart)
$0 stop
$0 start
;;
status)
if [ ! -e $PIDFILE ]; then
running="`ps ax --no-headers | grep -e twonkymedia | grep -v grep | grep -v twonkymedia | cut -d ' ' -f 1`"
if [ "${running}" == "" ]; then
echo "No TwonkyMedia server is running"
else
echo "A TwonkyMedia server seems to be running with PID ${running}, but no PID file exists."
echo "Probably no write permission for ${PIDFILE}."
fi
exit 0
fi
PID=`cat $PIDFILE`
running=`ps --no-headers -o "%c" -p $PID`
if ( [ "${DAEMON}"=="${running}" ] ); then
echo "TwonkyMedia server IS running."
else
echo "Looks like the daemon crashed: the PID does not match the daemon."
fi
;;
*)
echo ""
echo "TwonkyMedia server"
echo "------------------"
echo "Syntax:"
echo " $0 {start|stop|restart|reload|status}"
echo ""
exit 3
;;
esac
rc_exit
If this is the right file, would you please confirm the proper edit in order for my Worldbook to hold my dyndns.com URL, if that's possible?
