Archived
1
0
Fork 0

Fix process stopping

This commit is contained in:
Mercier Pierre-Olivier 2013-10-04 19:04:55 +02:00
parent 0951d36451
commit e6c9c1251b

View file

@ -50,7 +50,7 @@ fi
if [ "$ACTION" = "stop" ] || [ "$ACTION" = "restart" ] if [ "$ACTION" = "stop" ] || [ "$ACTION" = "restart" ]
then then
# Kill old liblersorf screen sessions # 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 while read LINE
do do
SNAME=`echo $LINE | $SED "s/^[^0-9]*([0-9]+\.[^ \t]+).*$/\1/"` SNAME=`echo $LINE | $SED "s/^[^0-9]*([0-9]+\.[^ \t]+).*$/\1/"`