33bcc9f1c39207b855172fe56231bac03270028f
3 # SPDX-FileCopyrightText: 2018 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
5 # SPDX-License-Identifier: GPL-2.0-or-later
11 # Kill any LTTng-related process
12 lttng_processes
="$(pgrep -l 'lttng|gen-ust-.+')" || true
13 if [ -n "$lttng_processes" ]; then
14 echo "The following LTTng processes were detected running on the system and will be killed:"
15 echo "$lttng_processes"
17 # Build the pids array
20 done < <(cut
-d ' ' -f 1 <<< "$lttng_processes")
22 kill -SIGKILL "${pids[@]}"
25 # Remove any coredump already present
26 find "/tmp" -name "core\.[0-9]*" -type f
-delete || true
This page took 0.031014 seconds and 5 git commands to generate.