summaryrefslogtreecommitdiff
path: root/multimedia/mediatomb/rc.mediatomb
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2021-04-22 16:21:59 +0200
committerRobby Workman <rworkman@slackbuilds.org>2021-04-22 20:17:41 -0500
commit4dcd81aff6ca80f5cd9f50d9c02d9804e6b895cb (patch)
tree6a8593ce8fc3b8afc2a1d4192f284be896ed7ba6 /multimedia/mediatomb/rc.mediatomb
parent21642447dd489fc4af818269af7d755486a7ebdc (diff)
downloadslackbuilds-4dcd81aff6ca80f5cd9f50d9c02d9804e6b895cb.tar.gz
multimedia/mediatomb: Removed.
If anyone is still interested in this they should look at gerbera: https://github.com/gerbera/gerbera Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'multimedia/mediatomb/rc.mediatomb')
-rw-r--r--multimedia/mediatomb/rc.mediatomb84
1 files changed, 0 insertions, 84 deletions
diff --git a/multimedia/mediatomb/rc.mediatomb b/multimedia/mediatomb/rc.mediatomb
deleted file mode 100644
index 206fb70741..0000000000
--- a/multimedia/mediatomb/rc.mediatomb
+++ /dev/null
@@ -1,84 +0,0 @@
-#!/bin/sh
-# Start/stop/restart mediatomb.
-# $Id: rc.mediatomb,v 1.0 2010/11/01
-# 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"
-
-# Get additional configuration information from /etc/rc.d/rc.mediatomb.conf:
-. /etc/rc.d/rc.mediatomb.conf
-
-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
- if [ "${MEDIATOMB_INTERFACE}" != "" ]; then
- MEDIATOMB_OPTIONS="$MEDIATOMB_OPTIONS --interface ${MEDIATOMB_INTERFACE}"
- fi
- if [ "${MEDIATOMB_PORT}" != "" ]; then
- MEDIATOMB_OPTIONS="$MEDIATOMB_OPTIONS --port ${MEDIATOMB_PORT}"
- fi
- /usr/bin/mediatomb \
- --daemon \
- --user ${MEDIATOMB_USER} \
- --group ${MEDIATOMB_GROUP} \
- --pidfile ${MEDIATOMB_PIDFILE} \
- --logfile ${MEDIATOMB_LOGFILE} \
- --config ${MEDIATOMB_CONFIG} \
- ${MEDIATOMB_OPTIONS}
- echo "done!"
- fi
-}
-
-mediatomb_stop()
-{
- echo -n "Stopping mediatomb ... "
- if [ -e "${MEDIATOMB_PIDFILE}" ]; then
- kill -TERM $(cat ${MEDIATOMB_PIDFILE}) > /dev/null 2>&1
- echo "done!"
- rm -f "${MEDIATOMB_PIDFILE}"
- else
- echo "not running!"
- fi
-}
-
-mediatomb_restart()
-{
- mediatomb_stop
- sleep 1
- mediatomb_start
-}
-
-mediatomb_status()
-{
- if [ -e "${MEDIATOMB_PIDFILE}" ]; then
- echo "mediatomb is running!"
- else
- echo "mediatomb is not running!"
- fi
-}
-
-case "$1" in
-'start')
- mediatomb_start
- ;;
-'stop')
- mediatomb_stop
- ;;
-'status')
- mediatomb_status
- ;;
-'restart')
- mediatomb_restart
- ;;
-*)
- echo "usage $0 start|stop|restart|status"
-esac