updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / ccxstream / ccxstream.cf
blob4d9595bc95a13a9193bf6f90fa17961ff11ef570
1 #!/bin/sh
3 #Uncomment the line below to begin (mandatory)
4 #CHECK=YES
6 #Below the user to run the service as (mandatory)
7 RUNASUSER="root"
9 #Below the password on the XBOX (optional)
10 #REMOTEPASS="xboxpassword"
12 #Below the interface to listen on (mandatory)
13 LISTENINTERFACE="192.168.2.1"
15 FOLLOWSYMLINKS=YES
17 #Comment (optional)
18 SERVERCOMMENT="ccXstream server. Powered by ArchLinux!"
20 #Shares to make available (mandatory)
21 SHARES="share1=/path/to/share1 share2=/path/to/share2"
23 #Location of binary file. Leave default unless you know what you're doing (mandatory)
24 BIN="/usr/bin/ccxstream"
26 #-----------------------------------------------------------------------------#
27 #-----------------------------------------------------------------------------#
29 DIR="-"
31 PIDFILE=/var/run/ccxstream.pid
33 PARAMS="-f -F $PIDFILE -r $DIR -u $RUNASUSER"
35 if test "$FOLLOWSYMLINKS" == "YES" ; then
36 PARAMS="$PARAMS -L"
39 if test "x$REMOTEPASS" != "x" ; then
40 PARAMS="$PARAMS -P $REMOTEPASS"
43 if test "x$LISTENINTERFACE" != "x" ; then
44 PARAMS="$PARAMS -l $LISTENINTERFACE"
47 for i in $SHARES ; do
48 PARAMS="$PARAMS -S $i"
49 done
51 if test "x$SERVERCOMMENT" = "x" ; then
52 SERVERCOMMENT="`hostname`"