File: run

package info (click to toggle)
roundup 1.2.1-10%2Betch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 4,764 kB
  • ctags: 3,756
  • sloc: python: 30,296; sh: 1,497; perl: 23; makefile: 22
file content (41 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
exec 2>&1

# Note that `notracker1` and 'notracker2' are just examples. Change
# them to the installed tracker name(s). See roundup-server(1) for
# more info

if [ -f /etc/default/roundup ]; then
	. /etc/default/roundup
fi

# Take these values from /etc/default/roundup:
# PORT, USER, TRACKERS, but override them all in case of having a CONFFILE
#
# TRACKERS must be set to a list of trackers in one string. Example:
# TRACKERS=${TRACKERS:=notracker1=/var/lib/roundup/notracker1 notracker2=/var/lib/roundup/notracker2}
# 
# If you can, use the server config file instead (except for the USER variable)

CONFFILE=/etc/roundup/roundup-server.ini

OPTS="-D"

if [ X${PORT} != X ]; then
	OPTS="${OPTS} -p ${PORT}"
fi

if [ -f ${CONFFILE} ]; then
	OPTS="${OPTS} -C ${CONFFILE}"
fi

if [ X${USER} != X ]; then
	chown -R ${USER} /var/lib/roundup/trackers
	chown -R ${USER} /var/run/roundup
	UOPT="chpst -u ${USER}"
fi

echo "starting roundup server"

exec $UOPT roundup-server ${OPTS} ${TRACKERS}