aboutsummaryrefslogtreecommitdiff
path: root/multimedia/SlimServer/rc.slimserver
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia/SlimServer/rc.slimserver')
-rw-r--r--multimedia/SlimServer/rc.slimserver52
1 files changed, 0 insertions, 52 deletions
diff --git a/multimedia/SlimServer/rc.slimserver b/multimedia/SlimServer/rc.slimserver
deleted file mode 100644
index 9148e2a47fad9..0000000000000
--- a/multimedia/SlimServer/rc.slimserver
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-#
-# /etc/rc.d/rc.slimserver
-#
-
-# Edit this to suit your setup
-SLIMSERVER_USER="slimserver"
-SLIMSERVER_HOME="/opt/slimserver"
-SLIMSERVER_CFG="/etc/slimserver.conf"
-SLIMSERVER_LOG="/var/log/slimserver.log"
-SLIMSERVER_CACHE="/var/cache/slimserver"
-SLIMSERVER_PLAYLISTS="/opt/slimserver/playlists"
-SLIMSERVER_ARGS="--daemon --cachedir=$SLIMSERVER_CACHE \
- --playlistdir=$SLIMSERVER_PLAYLISTS \
- --prefsfile=$SLIMSERVER_CFG \
- --logfile=$SLIMSERVER_LOG"
-SLIMSERVER_BIN="$SLIMSERVER_HOME/slimserver.pl"
-
-
-slimserver_start() {
- if [ -x $SLIMSERVER_BIN -a -r $SLIMSERVER_CFG ]; then
- echo "Starting Slimserver..."
- $SLIMSERVER_BIN --user $SLIMSERVER_USER $SLIMSERVER_ARGS
- fi
-}
-
-slimserver_stop() {
- echo "Stopping Slimserver..."
- killall slimserver.pl
-}
-
-slimserver_restart() {
- slimserver_stop
- sleep 2
- slimserver_start
-}
-
-
-case "$1" in
-'start')
- slimserver_start
- ;;
-'stop')
- slimserver_stop
- ;;
-'restart')
- slimserver_restart
- ;;
-*)
- echo "usage $0 start|stop|restart"
-esac
-