1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Put core dumps and crash output (cvsupd.out) into /var/run instead

of /var/tmp.  Create cvsupd.out with mode 644 if it doesn't already
exist.  Bump PORTREVISION.

Suggested by:	Joshua Goodall <joshua@roughtrade.net>
This commit is contained in:
John Polstra 2002-11-11 17:21:29 +00:00
parent ca4549c5f8
commit d6a2c9b4cb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=69902
2 changed files with 3 additions and 1 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= cvsup-mirror
PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= net
DISTFILES=

View File

@ -5,7 +5,7 @@ if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/cvsupd\.sh\$"); then
exit 1
fi
base=${PREFIX}/etc/cvsup
rundir=/var/tmp
rundir=/var/run
out=${rundir}/cvsupd.out
export PATH=/bin:/usr/bin:${PREFIX}/sbin
@ -19,6 +19,7 @@ cd ${rundir} || exit
arg=${1:-start}
case $arg in
start)
(umask 22 && touch ${out}) || exit
su -f -m ${user} -c \
"cvsupd -e -C 100 -l @${facility} -b ${base} -s sup.client" \
>>${out} 2>&1;;