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 <dpiliaiev@igalia.com>
This commit is contained in:
Danylo Piliaiev authored and Elliot Saba committed 2025-10-16 17:12:32 -07:00
1 parent 4203c60570
commit 63bf56e24c
1 file changed
+1 -1
+1 -1
View File
@@ -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