ControlScripts: ignore ssh command output when terminating user owned process
authorP2P-Next User <p2p@p2p-next-04-201.grid.pub.ro>
Fri, 20 Aug 2010 13:47:24 +0000 (16:47 +0300)
committerP2P-Next User <p2p@p2p-next-04-201.grid.pub.ro>
Fri, 20 Aug 2010 13:47:24 +0000 (16:47 +0300)
ControlScripts/run_scenario.sh

index 409fd29..b4b095e 100755 (executable)
@@ -100,11 +100,8 @@ scenario_setup() {
        while IFS=$'\t' read SERVER PORT USER REMOTE_PATH REMOTE_IF DL_BW DL_BURST UL_BW UL_BURST NO_CONNECTIONS PRE_RUN_SCRIPT POST_RUN_SCRIPT CLIENT_TYPE TORRENT_FILE PERIODS; do
                echo " ** Setting-up $SERVER:$PORT"
 
-               # Terminate $USER owned processes
-               if ! ssh -n -p ${PORT} root@${SERVER} "pkill -u ${USER}; pkill -KILL -u ${USER}"; then
-                       echo "Error: cannot kill $USER owned processes"
-                       exit 1
-               fi
+               # Terminate $USER owned processes (ignore result)
+               ssh -n -p ${PORT} root@${SERVER} "pkill -u ${USER}; pkill -KILL -u ${USER}"
 
                # Clean-up the host by using rsync
                if ! rsync -avP --del --exclude 'Results' --rsh='ssh -p'$PORT $TEST_INFRASTRUCTURE_REL_PATH ${USER}@${SERVER}:${REMOTE_PATH} >> $ERR_LOG 2>&1; then