proper AND at openrc shell
Costa Tsaousis (ktsaou) committed
Oct 4, 2017 at 21:14 UTC
301b0414e2ecede55380be6b41b709ade5811de5
1 file changed
+1
-1
system/netdata-openrc.in
+1
-1
@@ -70,7 +70,7 @@ stop_post() {
70
done
71
eend $sigkill
72
73
- if [ $sigkill -eq 1 && -f "${pidfile}" ]; then
73
+ if [ $sigkill -eq 1 -a -f "${pidfile}" ]; then
74
ebegin "Netdata is taking too long to exit, forcing it to quit"
75
kill -SIGKILL $(cat ${pidfile}) 2>/dev/null
76
eend $?