diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-09-11 19:04:57 +0300 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2018-09-11 19:04:57 +0300 |
commit | 7b824c5f87530da1984d433ff4d78506d845192a (patch) | |
tree | 41d201c07dc573522c4c0d520f6fac37782cab99 /system | |
parent | d8ef6e00956b76e28b16f7bb30d5747d2968d0d8 (diff) |
delete pidfile only when it exists
Diffstat (limited to 'system')
-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 } |