Commit bd061de2c2cc880726fa13d6cf520bc7f02639ea
1 parent
a9d06e6f
Exists in
dev
bugfix KILL_PYROS_DOCKER_RUN (renamed)
Showing
2 changed files
with
13 additions
and
3 deletions
Show diff stats
docker/PYROS_DOCKER_RUN__KILL renamed to docker/KILL_PYROS_DOCKER_RUN
... | ... | @@ -5,16 +5,21 @@ DOIT=1 |
5 | 5 | #DOIT=0 |
6 | 6 | |
7 | 7 | echo |
8 | -echo "Pour tuer complètement pyros, il faut KILL tous ces processus :" | |
8 | +echo "VOICI TOUS LES PROCESSUS LANCÉS POUR PYROS" | |
9 | +echo "------------------------------------------" | |
10 | +echo | |
11 | +echo "(Pour tuer complètement pyros, il faut KILL tous ces processus)" | |
9 | 12 | echo |
10 | 13 | |
11 | 14 | ps_process() { |
12 | 15 | |
13 | 16 | echo "- Processus $1 :" |
17 | + #ps -efl|grep "$1" | grep -v "grep" | sed "s/ * / /g" | cut -d " " -f 4 | |
14 | 18 | ps -efl|grep "$1" | grep -v "grep" |
15 | - #ps -efl|grep $1 | grep -v "grep" | cut -d " " -f 4 | |
16 | - pids=$(ps -efl|grep "$1" | grep -v "grep" | cut -d " " -f 4) | |
19 | + #pids=$(ps -efl|grep "$1" | grep -v "grep" | sed "s/ * / /g" | cut -d " " -f 4) | |
20 | + pids=$(ps -efl|grep "$1" | grep -v "grep" | sed "s/ */ /g" | cut -d " " -f 4) | |
17 | 21 | for p in $pids ; do |
22 | + #[ $DOIT == 1 ] && echo "kill $p" | |
18 | 23 | echo "kill $p" |
19 | 24 | [ $DOIT == 1 ] && kill $p |
20 | 25 | done | ... | ... |
docker/PYROS_DOCKER_RUN
... | ... | @@ -25,6 +25,11 @@ docker exec pyros bash -c "cd simulators/plc/ ; ./plcSimulator.py" > ../../LOG_P |
25 | 25 | # - Save log in file |
26 | 26 | docker exec pyros python3 pyros.py start agentM > ../../LOG_PYROS_agent_monitoring.log 2>&1 & |
27 | 27 | |
28 | +# SEE ALL PROCESSES LAUNCHED | |
29 | +./KILL_PYROS_DOCKER_RUN no | |
30 | + | |
31 | + | |
32 | + | |
28 | 33 | #cd src/core/pyros_django |
29 | 34 | #docker exec -it pyros python3 src/core/pyros_django/manage.py runserver 10.121.0.11:8000 |
30 | 35 | #docker exec -it pyros bash -c "cd src/ ; ls -l" | ... | ... |