diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-20 18:22:27 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-01-20 18:22:27 +0200 |
commit | 8f30f43ec80a5d8dc7245c8abb39334e7ce5abae (patch) | |
tree | 745e4f35572361920f038e7df5c27761afecef85 /system | |
parent | 3827569c309284df52f5c75e48d78affdff2f0c0 (diff) |
more informative signals on freebsd
Diffstat (limited to 'system')
-rw-r--r-- | system/netdata-freebsd.in | 6 |
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 } |