diff --git a/scripts/status.sh b/scripts/status.sh index df5babf..1ab7ff1 100755 --- a/scripts/status.sh +++ b/scripts/status.sh @@ -105,10 +105,10 @@ moonraker_status(){ done ### count amount of moonraker services - if [ "$(systemctl list-units --full -all -t service --no-legend | grep -F "klipper.service")" ]; then + if [ "$(systemctl list-units --full -all -t service --no-legend | grep -F "moonraker.service")" ]; then instances=1 else - instances=$(systemctl list-units --full -all -t service --no-legend | grep -E "klipper-[[:digit:]].service" | wc -l) + instances=$(systemctl list-units --full -all -t service --no-legend | grep -E "moonraker-[[:digit:]].service" | wc -l) fi ### display status