From b539cd39648b18421e4db4cc259295e15d93080a Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Fri, 11 Mar 2005 21:31:13 +0000 Subject: Move boincwrapper --- perso/sci-misc/boinc/files/boincwrapper | 19 +++++++++++++++++++ perso/sci-misc/boinc/files/boincwrapper1 | 19 ------------------- 2 files changed, 19 insertions(+), 19 deletions(-) create mode 100644 perso/sci-misc/boinc/files/boincwrapper delete mode 100644 perso/sci-misc/boinc/files/boincwrapper1 diff --git a/perso/sci-misc/boinc/files/boincwrapper b/perso/sci-misc/boinc/files/boincwrapper new file mode 100644 index 00000000..4e1bc3aa --- /dev/null +++ b/perso/sci-misc/boinc/files/boincwrapper @@ -0,0 +1,19 @@ +#!/bin/bash +# Script for starting BOINC in background and keeping logfile. +# Required argument: Path to BOINC binary +# Optional argument: Logfile path + +if [ $# -lt 1 ]; then + echo "Usage: $0 pathname_to_boinc" + exit 1 +else + BOINCBIN=$1 + + if [ $# -lt 2 ]; then + LOGFILE="/dev/null" + else + LOGFILE=$2 + fi +fi + +${BOINCBIN} >> ${LOGFILE} 2>&1 & diff --git a/perso/sci-misc/boinc/files/boincwrapper1 b/perso/sci-misc/boinc/files/boincwrapper1 deleted file mode 100644 index 4e1bc3aa..00000000 --- a/perso/sci-misc/boinc/files/boincwrapper1 +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# Script for starting BOINC in background and keeping logfile. -# Required argument: Path to BOINC binary -# Optional argument: Logfile path - -if [ $# -lt 1 ]; then - echo "Usage: $0 pathname_to_boinc" - exit 1 -else - BOINCBIN=$1 - - if [ $# -lt 2 ]; then - LOGFILE="/dev/null" - else - LOGFILE=$2 - fi -fi - -${BOINCBIN} >> ${LOGFILE} 2>&1 & -- cgit v1.2.3