From 63bf56e24cc8ec08ce2eeb8349096d16b85650df Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Mon, 13 Oct 2025 14:02:58 +0200 Subject: [PATCH] Fix ln error when using perfetto.sh WARN: perfetto-traced service was not running, attempting to auto-install: ln: failed to create symbolic link '/etc/systemd/system/perfetto-traced.service': File exists Signed-off-by: Danylo Piliaiev --- perfetto/perfetto.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/perfetto/perfetto.sh b/perfetto/perfetto.sh index 6498123..bcbfe63 100755 --- a/perfetto/perfetto.sh +++ b/perfetto/perfetto.sh @@ -24,7 +24,7 @@ fi # Ensure traced service is running, warn if not if ! systemctl is-active perfetto-traced; then echo "WARN: perfetto-traced service was not running, attempting to auto-install:" >&2 - sudo ln -sv ${SCRIPT_DIR}/perfetto-traced.service /etc/systemd/system/perfetto-traced.service + sudo ln -sfv ${SCRIPT_DIR}/perfetto-traced.service /etc/systemd/system/perfetto-traced.service sudo systemctl enable --now perfetto-traced echo "NOTE: Workloads that were already started may not connect to perfetto correctly, you may need to restart them." >&2 echo " The perfetto-traced service will automatically start upon boot, so this will persist through a reboot." >&2