diff options
Diffstat (limited to 'recipes/lttng/ust/ustd.init')
-rw-r--r-- | recipes/lttng/ust/ustd.init | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/recipes/lttng/ust/ustd.init b/recipes/lttng/ust/ustd.init new file mode 100644 index 0000000000..c23372a588 --- /dev/null +++ b/recipes/lttng/ust/ustd.init @@ -0,0 +1,22 @@ +#!/bin/sh + +PIDFILE="/var/run/ustd.pid" +TRACEDIR="/tmp/ust" + +case "$1" in + + start) + mkdir -p $TRACEDIR + ustd -o $TRACEDIR -d --pidfile $PIDFILE + ;; + + stop) + kill `cat $PIDFILE` + ;; + + reload) + $0 stop + $0 start + ;; + +esac |