summaryrefslogtreecommitdiffstats
path: root/system/install-service.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'system/install-service.sh.in')
-rwxr-xr-xsystem/install-service.sh.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/install-service.sh.in b/system/install-service.sh.in
index cdd1bf52f5..226dca5dee 100755
--- a/system/install-service.sh.in
+++ b/system/install-service.sh.in
@@ -630,6 +630,8 @@ install_darwin_service() {
exit 4
fi
+ launchctl unload /Library/LaunchDaemons/com.github.netdata.plist 2>/dev/null
+
if ! launchctl load /Library/LaunchDaemons/com.github.netdata.plist; then
error "Failed to load plist file."
exit 4