]> 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 f8abd5b0d388ac01f59ac3dbc6547874952724a6..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
 
@@ -897,7 +901,7 @@ cat <<-END
        -------------------------------------------------------------------------------
 
        INFO: Command line options changed. -pidfile, -nd and -ch are deprecated.
-       If you use custom stratup scripts please run netdata -h to see the 
+       If you use custom startup scripts, please run netdata -h to see the 
        corresponding options and update your scripts.
 
        Hit http://${access}:${NETDATA_PORT}/ from your browser.