toaster under mac osx.
Cool, thank you !
We also take patches on "[email protected]" <[email protected]>, in CC here.
BTW, I'm on the #iotos channel now.
Alex
Quoted 57 lines · Alexander
Alex, one liner fix :)
bitbake/bin/toaster +0
-0@@ -37,7 +37,7 @@ function webserverKillAll() kill -SIGTERM -$(< ${pidfile}) 2>/dev/null sleep 1; # Kill processes if they are still running - mayhappen in interactive shells
- ps fux | grep "python.*manage.py runserver" | awk
'{print $2}' | xargs kill
+ pkill -f "python.*manage.py runserver" -U $UIDdone; rm ${pidfile} fior without bash-ism:
bitbake/bin/toaster +0
-0@@ -37,7 +37,7 @@ function webserverKillAll() kill -SIGTERM -$(< ${pidfile}) 2>/dev/null sleep 1; # Kill processes if they are still running - mayhappen in interactive shells
- ps fux | grep "python.*manage.py runserver" | awk
'{print $2}' | xargs kill
+ ps ux | grep "python.*manage.py runserver" | awk
'{print $2}' | xargs killdone; rm ${pidfile} fi--
Best regards, Alexander Kanevskiy.---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in HelsinkiThis e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Signature · 3 lines
Alex Damian Yocto Project SSG / OTC
Quoted 9 lines · Alexandru
Cool, thank you !
Alex
Quoted 2 lines · Alexander
Alex, one liner fix :)
Quoted 14 lines
Quoted 8 lines
bitbake/bin/toaster +0
-0@@ -37,7 +37,7 @@ function webserverKillAll() kill -SIGTERM -$(< ${pidfile}) 2>/dev/null sleep 1; # Kill processes if they are still running - mayQuoted 5 lines
happen in interactive shells
- ps fux | grep "python.*manage.py runserver" | awk
'{print $2}' | xargs kill
+ pkill -f "python.*manage.py runserver" -U $UID
small correction, -U parameter should be before pattern. so, should be replaced with:
pkill -U $UID -f "python.*manage.py runserver"
Quoted 31 lines
done;Quoted 29 lines
rm ${pidfile} fior without bash-ism:
bitbake/bin/toaster +0
-0@@ -37,7 +37,7 @@ function webserverKillAll() kill -SIGTERM -$(< ${pidfile}) 2>/dev/null sleep 1; # Kill processes if they are still running - mayhappen in interactive shells
- ps fux | grep "python.*manage.py runserver" | awk
'{print $2}' | xargs kill
+ ps ux | grep "python.*manage.py runserver" | awk
'{print $2}' | xargs killdone; rm ${pidfile} fi--
Best regards, Alexander Kanevskiy.
Signature · 1 line
br, Alexander Kanevskiy
Patch here - sorry for the delay, I was caught up in the release.
Quoted 67 lines · Alexander Kanevskiy
Quoted 9 lines · Alexandru
Cool, thank you !
Alex
Quoted 2 lines · Alexander
Alex, one liner fix :)
Quoted 14 lines
Quoted 8 lines
bitbake/bin/toaster +0
-0@@ -37,7 +37,7 @@ function webserverKillAll() kill -SIGTERM -$(< ${pidfile}) 2>/dev/null sleep 1; # Kill processes if they are still running - mayQuoted 5 lines
happen in interactive shells
- ps fux | grep "python.*manage.py runserver" | awk
'{print $2}' | xargs kill
+ pkill -f "python.*manage.py runserver" -U $UIDsmall correction, -U parameter should be before pattern. so, should be replaced with:
pkill -U $UID -f "python.*manage.py runserver"
Quoted 27 lines
done;Quoted 26 lines
rm ${pidfile} fior without bash-ism:
bitbake/bin/toaster +0
-0@@ -37,7 +37,7 @@ function webserverKillAll() kill -SIGTERM -$(< ${pidfile}) 2>/dev/null sleep 1; # Kill processes if they are still running - mayhappen in interactive shells
- ps fux | grep "python.*manage.py runserver" | awk
'{print $2}' | xargs kill
+ ps ux | grep "python.*manage.py runserver" | awk
'{print $2}' | xargs killdone; rm ${pidfile} fiQuoted 4 lines
Quoted 3 lines
--
Best regards, Alexander Kanevskiy.--
br, Alexander Kanevskiy
Signature · 3 lines
Alex Damian Yocto Project SSG / OTC