/etc/init/mediatomb.conf is in mediatomb-daemon 0.12.1-47-g7ab7616-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 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
|