From 8abe94d9e2426df7b20b9d84cccaff48a76470d2 Mon Sep 17 00:00:00 2001 From: Craig Schardt Date: Sat, 3 Aug 2024 17:02:03 -0500 Subject: [PATCH] service doesn't work for OrangePis --- scripts/install.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 88d5b776af..a12db8e91d 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -152,8 +152,7 @@ echo "Downloaded latest stable release of PhotonVision." echo "Creating the PhotonVision systemd service..." # service --status-all doesn't list photonvision on OrangePi use systemctl instead: -#if systemctl --quiet is-active photonvision; then -if service --status-all | grep -Fq 'photonvision'; then +if systemctl --quiet is-active photonvision; then echo "PhotonVision is already running. Stopping service." systemctl stop photonvision systemctl disable photonvision