Skip to content

Commit

Permalink
service doesn't work for OrangePis
Browse files Browse the repository at this point in the history
  • Loading branch information
crschardt committed Aug 3, 2024
1 parent 7497012 commit 8abe94d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8abe94d

Please sign in to comment.