mediatomb fails with "respawning too fast, stopped"
- by felix
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