summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-10-04 21:14:55 +0300
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-10-04 21:14:55 +0300
commit301b0414e2ecede55380be6b41b709ade5811de5 (patch)
tree007afd2a6b46edd5de601ee9adda401b70bfa3b4 /system
parentd4696776576263ac7bebf529006513992e2610bb (diff)
proper AND at openrc shell
Diffstat (limited to 'system')
-rw-r--r--system/netdata-openrc.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/netdata-openrc.in b/system/netdata-openrc.in
index 512d482781..ce76f7e64a 100644
--- a/system/netdata-openrc.in
+++ b/system/netdata-openrc.in
@@ -70,7 +70,7 @@ stop_post() {
done
eend $sigkill
- if [ $sigkill -eq 1 && -f "${pidfile}" ]; then
+ if [ $sigkill -eq 1 -a -f "${pidfile}" ]; then
ebegin "Netdata is taking too long to exit, forcing it to quit"
kill -SIGKILL $(cat ${pidfile}) 2>/dev/null
eend $?