diff options
Diffstat (limited to 'net/cvsup-mirror/files/cvsupd.sh')
-rw-r--r-- | net/cvsup-mirror/files/cvsupd.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net/cvsup-mirror/files/cvsupd.sh b/net/cvsup-mirror/files/cvsupd.sh new file mode 100644 index 000000000000..1190e591c685 --- /dev/null +++ b/net/cvsup-mirror/files/cvsupd.sh @@ -0,0 +1,16 @@ +#! /bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/cvsupd\.sh\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi +base=${PREFIX}/etc/cvsup + +export PATH=/bin:/usr/bin:${PREFIX}/sbin +umask 2 + +test -x ${PREFIX}/sbin/cvsupd || exit 1 +echo -n " cvsupd" +cd ${base} || exit +. config.sh || exit +su -m ${user} -c "cvsupd -C ${maxclients} -l @${facility}" |