blob: 9a1f85c2f933cd1897894df75ec4b93a9eb0c2b4 [file] [log] [blame]
#!/usr/bin/env bash
# remember to leave no slashes on filename in source command,
# (the commonVariations.shsource file, that is)
# so that users path is used to find it (first)
if [ -z $BUILD_INITIALIZED ]
then
source commonVariations.shsource
source ${RELENG_CONTROL}/commonComputedVariables.shsource
fi
if [ -z $DISPLAYNUMBER ]
then
DISPLAYNUMBER=1001
fi
if [ -z $XVFBFONTPATH ]
then
XVFBFONTPATH=/usr/share/fonts/misc/
fi
# limit data space (ld) to 10m bytes.
# limit stack space (ls) to 1m bytes.
# limit number of open files (lf) to 20
# set connection time out to 60 seconds
XVFBSCREEN=${BUILD_HOME}/tmp
mkdir -p ${XVFBSCREEN}
Xvfb :$DISPLAYNUMBER -screen 0 1600x1200x16 -fbdir "${XVFBSCREEN}" -fp "${XVFBFONTPATH}" -ld 10240 -ls 1024 -lf 20 -to 60 -reset -bs -auth ${RELENG_CONTROL}/xvfb-auth.cfg &
XVFBPID=$!
echo $XVFBPID > ccxvfb.pid
echo "DISPLAYNUMBER: " $DISPLAYNUMBER;
echo "XVFBFONTPATH: " $XVFBFONTPATH;
echo "XVFBSCREEN: " $XVFBSCREEN;
echo "XVFBPID: " $XVFBPID;