summaryrefslogtreecommitdiff
path: root/multimedia/mediatomb/rc.mediatomb
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/mediatomb/rc.mediatomb')
-rw-r--r--multimedia/mediatomb/rc.mediatomb4
1 files changed, 4 insertions, 0 deletions
diff --git a/multimedia/mediatomb/rc.mediatomb b/multimedia/mediatomb/rc.mediatomb
index 92804835b9..206fb70741 100644
--- a/multimedia/mediatomb/rc.mediatomb
+++ b/multimedia/mediatomb/rc.mediatomb
@@ -4,6 +4,7 @@
# Authors: Heinz Wiesinger <pprkut@liwjatan.at>
# ---------------------------------------------------------------------------
+MEDIATOMB_PIDDIR="/var/run/mediatomb/"
MEDIATOMB_PIDFILE="/var/run/mediatomb/mediatomb.pid"
MEDIATOMB_LOGFILE="/var/log/mediatomb/mediatomb.log"
@@ -13,6 +14,9 @@ MEDIATOMB_LOGFILE="/var/log/mediatomb/mediatomb.log"
mediatomb_start()
{
echo -n "Starting mediatomb ... "
+ if ! [ -e "${MEDIATOMB_PIDDIR}" ]; then
+ mkdir -p "${MEDIATOMB_PIDDIR}"
+ fi
if [ -e "${MEDIATOMB_PIDFILE}" ]; then
echo "already running!"
else