[BACK]Return to MirrorOpenBSD CVS log [TXT][DIR] Up to [local] / openbsd / OpenBSDTorrents

Annotation of openbsd/OpenBSDTorrents/MirrorOpenBSD, Revision 1.5

1.1       andrew      1: #!/bin/sh
1.5     ! andrew      2: # $RedRiver: MirrorOpenBSD,v 1.4 2007/10/01 20:17:23 andrew Exp $
1.1       andrew      3:
                      4: . /etc/OpenBSDTorrents.conf
                      5:
                      6: cd ${OBT_DIR_HOME}
                      7: PIDFILE=${OBT_DIR_HOME}/run/mirror.pid
                      8:
                      9: if [ -e ${PIDFILE} ]; then
                     10:        PID=`head -1 ${PIDFILE}`
                     11:        kill -0 ${PID} 2> /dev/null
                     12:        if [ $? -eq 0 ]; then
                     13:                echo Already running
                     14:                exit 1
                     15:        fi
                     16: fi
                     17: echo $$ > ${PIDFILE}
                     18:
1.5     ! andrew     19: lftp -f ${OBT_DIR_HOME}/lftp-OpenBSD.script

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>