@cryptotaxi247 / netdata-1 / commits / 8f30f43ec

more informative signals on freebsd

Costa Tsaousis (ktsaou) committed Jan 20, 2018 at 18:22 UTC 8f30f43ec80a5d8dc7245c8abb39334e7ce5abae
1 file changed +4 -2
system/netdata-freebsd.in
+4 -2
@@ -32,13 +32,15 @@ netdata_poststop()
32
33 netdata_reloadhealth()
34 {
35 - kill -USR2 `cat ${pidfile}`
35 + p=`cat ${pidfile}`
36 + kill -USR2 ${p} && echo "Sent USR2 (reload health) to pid ${p}"
37 return 0
38 }
39
40 netdata_savedb()
41 {
41 - kill -USR1 `cat ${pidfile}`
42 + p=`cat ${pidfile}`
43 + kill -USR2 ${p} && echo "Sent USR1 (save db) to pid ${p}"
44 return 0
45 }
46