#!/bin/bash

for i in {0..100..10}
do
    rm -rf ser$i
    mkdir -p ser$i
    cd ./ser$i
    ../salamandre-daemon -s `expr 20000 + $i` -g `expr 20000 + $i + 1` &> log.txt &
    cd ..
done

#!/bin/bash

for i in {0..100..10}
do
    rm -rf ser$i
    mkdir -p ser$i
    cd ./ser$i
    ../salamandre-daemon -s `expr 20000 + $i` -g `expr 20000 + $i + 1` -d
    cd ..
done

Use daemon switch in start daemon script
[daemon] Use daemon switch in start daemon script
