1997-02-02 04:11:35 +00:00
|
|
|
#! /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
|
1997-07-16 20:59:55 +00:00
|
|
|
out=/var/tmp/cvsupd.out
|
1997-02-02 04:11:35 +00:00
|
|
|
|
|
|
|
export PATH=/bin:/usr/bin:${PREFIX}/sbin
|
|
|
|
umask 2
|
|
|
|
|
|
|
|
test -x ${PREFIX}/sbin/cvsupd || exit 1
|
|
|
|
echo -n " cvsupd"
|
|
|
|
cd ${base} || exit
|
1998-02-12 01:14:02 +00:00
|
|
|
. ./config.sh || exit
|
1997-07-16 20:59:55 +00:00
|
|
|
su -m ${user} -c \
|
1998-03-24 04:41:44 +00:00
|
|
|
"cvsupd -e -C ${maxclients} -l @${facility} -s sup.client" >>${out} 2>&1
|