summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/netdata-freebsd.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/system/netdata-freebsd.in b/system/netdata-freebsd.in
index 13bc767b2e..fac2e82c26 100644
--- a/system/netdata-freebsd.in
+++ b/system/netdata-freebsd.in
@@ -32,13 +32,15 @@ netdata_poststop()
netdata_reloadhealth()
{
- kill -USR2 `cat ${pidfile}`
+ p=`cat ${pidfile}`
+ kill -USR2 ${p} && echo "Sent USR2 (reload health) to pid ${p}"
return 0
}
netdata_savedb()
{
- kill -USR1 `cat ${pidfile}`
+ p=`cat ${pidfile}`
+ kill -USR2 ${p} && echo "Sent USR1 (save db) to pid ${p}"
return 0
}