From e6c9c1251bdebf5ae2eb2ec96013a48c02f741bc Mon Sep 17 00:00:00 2001 From: Mercier Pierre-Olivier Date: Fri, 4 Oct 2013 19:04:55 +0200 Subject: [PATCH] Fix process stopping --- process/launch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process/launch.sh b/process/launch.sh index 231c506..91b78da 100755 --- a/process/launch.sh +++ b/process/launch.sh @@ -50,7 +50,7 @@ fi if [ "$ACTION" = "stop" ] || [ "$ACTION" = "restart" ] then # Kill old liblersorf screen sessions - echo "$SCREEN -ls" intradmin | $GREP '[0-9]+\.lerdorf_[a-zA-Z0-9_-]+' | $SU | + echo "$SCREEN -ls" | $SU intradmin | $GREP '[0-9]+\.lerdorf_[a-zA-Z0-9_-]+' | while read LINE do SNAME=`echo $LINE | $SED "s/^[^0-9]*([0-9]+\.[^ \t]+).*$/\1/"`