@cryptotaxi247 / netdata-1 / commits / 7b824c5f8

delete pidfile only when it exists

Costa Tsaousis (ktsaou) committed Sep 11, 2018 at 19:04 UTC 7b824c5f87530da1984d433ff4d78506d845192a
1 file changed +1 -1
system/netdata-freebsd.in
+1 -1
@@ -30,7 +30,7 @@ netdata_prestart()
30
31 netdata_poststop()
32 {
33 - rm "${pidfile}"
33 + [ -f "${pidfile}" ] && rm "${pidfile}"
34 return 0
35 }
36