From f53685ef760d69d07e653aba30ffbde7b0a1bcaf Mon Sep 17 00:00:00 2001 From: Evgeniy Patlan Date: Thu, 13 Jul 2017 20:28:44 +0300 Subject: [PATCH] For does not work on dash IN case of dash(for example default on wheezy) for operator shold be reworked --- service_sysv_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_sysv_linux.go b/service_sysv_linux.go index e1f7ede..d2a965b 100644 --- a/service_sysv_linux.go +++ b/service_sysv_linux.go @@ -205,7 +205,7 @@ case "$1" in if is_running; then echo -n "Stopping $name.." kill $(get_pid) - for i in {1..10} + for i in $(seq 1 10) do if ! is_running; then break