diff options
-rw-r--r-- | system/netdata-freebsd.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/netdata-freebsd.in b/system/netdata-freebsd.in index 501a8c697c..ff716dc977 100644 --- a/system/netdata-freebsd.in +++ b/system/netdata-freebsd.in @@ -30,7 +30,7 @@ netdata_prestart() netdata_poststop() { - rm "${pidfile}" + [ -f "${pidfile}" ] && rm "${pidfile}" return 0 } |