385abc643a00e06f56d1f17975c331239a9f879a
4 LIBINTERFORK
="./libinterfork/.libs/libinterfork.so"
6 BASE_TRACE_DIR
="$HOME/.usttraces"
9 echo "usage: $0 COMMAND" 2>/dev
/stderr
13 echo "$0: error: $1" 2>/dev
/stderr
22 error
"no home specified"
27 error
"no command specified"
32 # Create directory for trace output
33 DATESTRING
="$(hostname)-$(date +%Y%m%d%H%M%S)"
34 OUTDIR
="$BASE_TRACE_DIR/$DATESTRING"
38 SOCKPATH
="/tmp/ust-sock-$$"
41 $USTD -s "$SOCKPATH" -o "$OUTDIR" >"$OUTDIR/ustd.log" 2>&1 &
44 # Establish the environment for the command
46 export UST_AUTOPROBE
=1
47 export UST_DAEMON_SOCKET
="$SOCKPATH"
52 ## Because of the keepalive mechanism, we're sure that by the time
53 ## we get here, the daemon is connected to all the buffers that still exist.
54 ## Therefore we can politely ask it to die when it's done.
56 kill -SIGTERM "$USTDPID"
58 # Tell the daemon to die
59 echo "Waiting for ustd to shutdown..."
This page took 0.032883 seconds and 5 git commands to generate.