4 changed files with 85 additions and 7 deletions
@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<config version="2" xmlns="http://mediatomb.cc/config/2" |
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd"> |
||||
<server> |
||||
<port>49152</port> |
||||
<ip>127.0.0.1</ip> |
||||
<interface>lo</interface> |
||||
<name>MediaTomb</name> |
||||
<udn /> |
||||
<home>/var/lib/mediatomb</home> |
||||
<webroot>/usr/share/mediatomb/web</webroot> |
||||
<storage caching="yes"> |
||||
<sqlite3 enabled="yes"> |
||||
<database-file>mediatomb.db</database-file> |
||||
</sqlite3> |
||||
<mysql enabled="no"> |
||||
<host>localhost</host> |
||||
<port>3306</port> |
||||
<username>mediatomb</username> |
||||
<password>mediatomb</password> |
||||
<database>mediatomb</database> |
||||
</mysql> |
||||
</storage> |
||||
</server> |
||||
</config> |
@ -0,0 +1,34 @@
|
||||
#!/bin/sh |
||||
|
||||
PIDFILE=/var/run/mediatomb.pid |
||||
|
||||
case "$1" in |
||||
start) |
||||
/usr/bin/mediatomb -c /etc/mediatomb.xml -d \ |
||||
-u mediatomb -g mediatomb -P $PIDFILE |
||||
;; |
||||
|
||||
stop) |
||||
[ -f $PIDIFLE ] && kill -TERM `cat $PIDFILE` |
||||
rm -f $PIDFILE |
||||
;; |
||||
|
||||
restart) |
||||
$0 stop |
||||
sleep 1 |
||||
$0 start |
||||
;; |
||||
|
||||
status) |
||||
if [ -f $PIDFILE ] && kill -0 `cat $PIDFILE` ; then |
||||
echo "Mediatomb is running" |
||||
else |
||||
echo "Mediatomb is not running" |
||||
fi |
||||
;; |
||||
|
||||
*) |
||||
echo "usage: $0 {start|stop|restart}" |
||||
exit 1 |
||||
;; |
||||
esac |
Loading…
Reference in new issue