mediatomb fails with "respawning too fast, stopped"
Posted
by
felix
on Ask Ubuntu
See other posts from Ask Ubuntu
or by felix
Published on 2013-11-10T10:10:01Z
Indexed on
2013/11/10
10:16 UTC
Read the original article
Hit count: 401
When I try to start mediatomb it fails. I see this in dmesg
[...]
[916349.374331] init: mediatomb main process ended, respawning
[916349.394462] init: mediatomb main process (880) terminated with status 1
[916349.394512] init: mediatomb main process ended, respawning
[916349.414598] init: mediatomb main process (882) terminated with status 1
[916349.414647] init: mediatomb respawning too fast, stopped
My current /etc/init/mediatomb.conf looks like this.
description "MediaTomb UPnP media server"
author "Daniel van Vugt <vanvugt in launchpad>"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [!2345]
respawn
env CONFIGXML=/etc/mediatomb/config.xml
env LOGFILE=/var/log/mediatomb.log
env DEFAULT=/etc/default/mediatomb
script
[ -r $DEFAULT ] && . $DEFAULT
[ ! $USER ] && USER=root
[ ! $GROUP ] && GROUP=$USER
if [ -n "$INTERFACE" ]; then
INTERFACE_ARG="-e $INTERFACE"
$ROUTE_ADD $INTERFACE
fi
exec mediatomb \
-c $CONFIGXML \
-u $USER \
-g $GROUP \
-l $LOGFILE \
$INTERFACE_ARG \
$OPTIONS
end script
post-stop script
[ -r $DEFAULT ] && . $DEFAULT
if [ -n "$INTERFACE" ]; then
$ROUTE_DEL $INTERFACE
fi
end script
© Ask Ubuntu or respective owner