Skip to contentSkip to conversation

toaster under mac osx.

DISCUSSION Damian, Alexandru 2 participants 3 messages Mar 17, 2015 – Mar 31, 2015 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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
index 7907b57..ceff747 100755
@@ -37,7 +37,7 @@ function webserverKillAll()
                        kill -SIGTERM -$(< ${pidfile}) 2>/dev/null
                        sleep 1;
                        # Kill processes if they are still running - may

happen in interactive shells
- ps fux | grep "python.*manage.py runserver" | awk
'{print $2}' | xargs kill
+ pkill -f "python.*manage.py runserver" -U $UID

                done;
                rm  ${pidfile}
                fi

or without bash-ism:

bitbake/bin/toaster +0 -0
index 7907b57..ceff747 100755
@@ -37,7 +37,7 @@ function webserverKillAll()
                        kill -SIGTERM -$(< ${pidfile}) 2>/dev/null
                        sleep 1;
                        # Kill processes if they are still running - may

happen 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 kill

                done;
                rm  ${pidfile}
                fi

--
Best regards, Alexander Kanevskiy.

---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki

This 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
#2 lore raw
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
index 7907b57..ceff747 100755
@@ -37,7 +37,7 @@ function webserverKillAll()
                        kill -SIGTERM -$(< ${pidfile}) 2>/dev/null
                        sleep 1;
                        # Kill processes if they are still running - may
Quoted 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}
                fi

or without bash-ism:

bitbake/bin/toaster +0 -0
index 7907b57..ceff747 100755
@@ -37,7 +37,7 @@ function webserverKillAll()
                        kill -SIGTERM -$(< ${pidfile}) 2>/dev/null
                        sleep 1;
                        # Kill processes if they are still running - may

happen 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 kill

                done;
                rm  ${pidfile}
                fi

--
Best regards, Alexander Kanevskiy.

Signature · 1 line
br, Alexander Kanevskiy
#3 lore raw

Patch here - sorry for the delay, I was caught up in the release.

https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=adamian/20150331_refactoring&id=d23c6c5c44e6f51e43c5e23a9ee04c8a43622b46

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
index 7907b57..ceff747 100755
@@ -37,7 +37,7 @@ function webserverKillAll()
                        kill -SIGTERM -$(< ${pidfile}) 2>/dev/null
                        sleep 1;
                        # Kill processes if they are still running - may
Quoted 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 27 lines
                done;
Quoted 26 lines
                rm  ${pidfile}
                fi

or without bash-ism:

bitbake/bin/toaster +0 -0
index 7907b57..ceff747 100755
@@ -37,7 +37,7 @@ function webserverKillAll()
                        kill -SIGTERM -$(< ${pidfile}) 2>/dev/null
                        sleep 1;
                        # Kill processes if they are still running - may

happen 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 kill

                done;
                rm  ${pidfile}
                fi
Quoted 4 lines
Quoted 3 lines

--
Best regards, Alexander Kanevskiy.

--
br, Alexander Kanevskiy

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC