From 891a63080ee425f8318c4091dd8314fc883cd483 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 22 Feb 2011 12:32:21 +0100 Subject: [PATCH 1/1] fcb: Parse command line parameters in wrapper script This is needed for -d to be passed to forbrun instead to libfcb.so. --- fres/cbroker/fcb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/fres/cbroker/fcb b/fres/cbroker/fcb index c6ca432..36976e4 100755 --- a/fres/cbroker/fcb +++ b/fres/cbroker/fcb @@ -1,3 +1,15 @@ #!/bin/sh -forbrun -i "org.frescor.fcb" -- libfcb.so "$@" +while [ $# -gt 0 ]; do + case "$1" in + -d*|--daemon=) + FORBRUN_ARGS="$FORBRUN_ARGS $1";; + --daemon) + FORBRUN_ARGS="$FORBRUN_ARGS $1 $2"; shift;; + *) + FCB_ARGS="$FCB_ARGS '$1'" + esac + shift +done + +forbrun -i "org.frescor.fcb" $FORBRUN_ARGS -- libfcb.so $FCB_ARGS -- 2.39.2