mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
29 lines
369 B
Bash
Executable File
29 lines
369 B
Bash
Executable File
#!/bin/sh
|
|
|
|
epilogue() {
|
|
lttng stop
|
|
lttng destroy
|
|
exit 0
|
|
}
|
|
|
|
trap epilogue SIGINT
|
|
|
|
lttng create jami
|
|
lttng enable-event --userspace 'jami:*'
|
|
lttng add-context --userspace --type=vtid
|
|
|
|
for arg in "$@"; do
|
|
case "$arg" in
|
|
"--") break ;;
|
|
*) lttng add-context --userspace --type="$1" ;;
|
|
esac
|
|
shift
|
|
done
|
|
shift
|
|
|
|
lttng start
|
|
|
|
$@
|
|
|
|
epilogue
|