#!/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" -s 1111111111111111 $FORBRUN_ARGS -- libfcb.so $FCB_ARGS