We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef7fc0c + 8067256 commit fc3be26Copy full SHA for fc3be26
monitor.sh
100644
100755
support/init
@@ -27,7 +27,7 @@ git_path=$(which git)
27
28
#RUNTYPE
29
SERVICE_ACTIVE=true
30
-systemctl is-active --quiet monitor && SERVICE_ACTIVE=true || SERVICE_ACTIVE=false
+which systemctl >/dev/null && systemctl is-active --quiet monitor && SERVICE_ACTIVE=true || SERVICE_ACTIVE=false
31
32
#VERSION CHECKER
33
mosquitto_sub_version=$($mosquitto_sub_path --help | grep -Eo "version [0-9.]{3,}" | sed 's/[^0-9.]//gi')
0 commit comments