diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-04-04 15:38:57 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2016-04-04 15:38:57 +0300 |
commit | a44f48981dba80bd4376226a7b30b3534660a855 (patch) | |
tree | e8d176152c30d694bb61c3c1aca355fbcf666a5b /netdata-installer.sh | |
parent | d3d8d3f37b79811b89486fc8481dbf5b605a3b0d (diff) |
added support for binding to a configured IP address (IPv6 or IPv4)
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 |