summaryrefslogtreecommitdiff
path: root/etc/xxvd
diff options
context:
space:
mode:
authorAndreas Brachold <vdr07@deltab.de>2007-08-13 18:41:27 +0000
committerAndreas Brachold <vdr07@deltab.de>2007-08-13 18:41:27 +0000
commitbcbf441e09fb502cf64924ff2530fa144bdf52c5 (patch)
treef377707a2dac078db8cd0c7d7abfe69ac1006d71 /etc/xxvd
downloadxxv-bcbf441e09fb502cf64924ff2530fa144bdf52c5.tar.gz
xxv-bcbf441e09fb502cf64924ff2530fa144bdf52c5.tar.bz2
* Move files to trunk
Diffstat (limited to 'etc/xxvd')
-rwxr-xr-xetc/xxvd85
1 files changed, 85 insertions, 0 deletions
diff --git a/etc/xxvd b/etc/xxvd
new file mode 100755
index 0000000..8ec5d5c
--- /dev/null
+++ b/etc/xxvd
@@ -0,0 +1,85 @@
+#!/bin/sh
+#
+# xxvd Start/Stop the xxvd daemon.
+#
+# chkconfig: 2345 90 11
+# description: xxvd is a telnet/http config \
+# server, for ther DVB Settop box vdr program. \
+# \
+# \
+# .
+# processname: xxvd
+# config: xxvd.cfg
+#
+# to Setup, where is xxvd located
+# In welchem Ordner befindet sich bin/xxvd
+FOLDER="/root/XXV"
+
+
+# Run as noprivileged user, else set empty
+RUNAS="root"
+
+# Which translation is used
+LANGUAGE="de_DE@euro";
+
+# See how we were called.
+PROG="bin/xxvd"
+
+MODPATH="$FOLDER/lib/XXV/MODULES"
+CONFIG="$FOLDER/etc/xxvd.cfg"
+PIDFILE="/var/run/xxvd.pid"
+HTMLDIR="$FOLDER/"
+DOCUDIR="$FOLDER/doc/"
+PODDIR="$FOLDER/doc/"
+LOGFILE="/var/log/xxvd.log"
+CONTRIB="$FOLDER/contrib"
+NEWSMODS="$FOLDER/lib/XXV/OUTPUT/NEWS"
+NEWSTMPL="$FOLDER/share/news"
+VERBOSE="3"
+
+OPTIONS="--configfile $CONFIG \
+ --logfile $LOGFILE \
+ --pidfile $PIDFILE \
+ --docudir $DOCUDIR \
+ --poddir $PODDIR \
+ --htmldir $HTMLDIR \
+ --contrib $CONTRIB \
+ --newsmods $NEWSMODS \
+ --newstmpl $NEWSTMPL \
+ --moduledir $MODPATH \
+ --verbose $VERBOSE"
+
+start() {
+ echo -n "Start $PROG: "
+ su - $RUNAS -c "export LANG="$LANGUAGE";cd $FOLDER;nice -n 10 ./$PROG $OPTIONS"
+}
+
+stop() {
+ echo -n "Stop $PROG: "
+ su - $RUNAS -c "export LANG="$LANGUAGE";cd $FOLDER;./$PROG --kill $OPTIONS"
+}
+
+restart() {
+ stop
+ start
+}
+
+case "$1" in
+ start)
+ start
+ exit 0;
+ ;;
+ stop)
+ stop
+ exit 0;
+ ;;
+ restart)
+ restart
+ exit 0;
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|status|restart}"
+ exit 1
+esac
+
+exit $?