#!/bin/sh
[ -r conf ] && . ./conf
[ -d ${BOINCDIR} ] || mkdir -m 755 -p ${BOINCDIR}
[ -f ${LOGFILE} ] || touch ${LOGFILE}
[ -f ${ERRORLOG} ] || touch ${ERRORLOG}
chown --recursive ${BOINCUSER}:${BOINCUSER} ${BOINCDIR} ${LOGFILE} ${ERRORLOG}
exec 2>&1
exec chpst -u ${BOINCUSER} ${BOINCEXE_NAME} ${OPTS}
