diff options
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 2b316ff784..7a00a56cec 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -314,7 +314,10 @@ do count=$((count + 1)) - pid=$(cat /var/run/netdata/netdata.pid 2>/dev/null || cat /var/run/netdata.pid 2>/dev/null) + pid=$(cat /var/run/netdata.pid 2>/dev/null) + # backwards compatibility + [ -z "${pid}" ] && pid=$(cat /var/run/netdata/netdata.pid 2>/dev/null) + isnetdata $pid || pid= if [ ! -z "${pid}" ] then |