File: cvs-pserver

package info (click to toggle)
cvs 1%3A1.12.9-13
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,064 kB
  • ctags: 15
  • sloc: sh: 820; makefile: 103
file content (38 lines) | stat: -rw-r--r-- 695 bytes parent folder | download
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
#!/bin/bash

# $Debian$

#
# Execute pserver
#

# Set some resource limits

unset HOME
if [ -f /etc/cvs-pserver.conf ]; then
	. /etc/cvs-pserver.conf
elif [ -f /etc/cvs.conf ]; then
	. /etc/cvs.conf
else
	CVS_PSERV_REPOS=""
fi

ulimit -m ${CVS_PSERV_LIMIT_MEM:-131072}
ulimit -d ${CVS_PSERV_LIMIT_DATA:-131072}
ulimit -c ${CVS_PSERV_LIMIT_CORE:-0}
ulimit -t ${CVS_PSERV_LIMIT_CPU:-3600} 

allow_root_opts=""
OLDIFS="$IFS"
IFS=':'
for i in $CVS_PSERV_REPOS; do
	IFS="$OLDIFS"
	allow_root_opts="$allow_root_opts --allow-root=$i"
done

cvs_tmp_dir=""
[ "$CVS_TMP_DIR" != "" ] && cvs_tmp_dir="-T $CVS_TMP_DIR"

exec /usr/bin/cvs -b /usr/bin ${cvs_tmp_dir} ${allow_root_opts} pserver

# End of file.