]> arthur.barton.de Git - netdata.git/blobdiff - netdata-installer.sh
increased version in html for CDN refresh; updated API reference for badge.svg; insta...
[netdata.git] / netdata-installer.sh
index f07da52de239cb4f382d4ce7c4d39a9ec43e2338..1c08d8d9b7ac7f6062cd83f3f8856fedba9bde35 100755 (executable)
@@ -607,7 +607,7 @@ if [ "${UID}" -eq 0 ]
                fi
 
                stop_all_netdata
-               run service netdata start && started=1
+               run service netdata restart && started=1
        fi
 
        if [ ${started} -eq 0 ]
@@ -615,7 +615,11 @@ if [ "${UID}" -eq 0 ]
                # check if we can use the system service
                run service netdata stop
                stop_all_netdata
-               run service netdata start && started=1
+               run service netdata restart && started=1
+               if [ ${started} -eq 0 ]
+               then
+                       run service netdata start && started=1
+               fi
        fi
 fi