All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: toaster under mac osx.
       [not found] <D12DE191.63B6C%alexander.kanevskiy@intel.com>
@ 2015-03-17 13:29 ` Damian, Alexandru
  2015-03-18  8:27   ` Alexander Kanevskiy
  0 siblings, 1 reply; 3+ messages in thread
From: Damian, Alexandru @ 2015-03-17 13:29 UTC (permalink / raw)
  To: Kanevskiy, Alexander, toaster

[-- Attachment #1: Type: text/plain, Size: 2299 bytes --]

Cool, thank you !

We also take patches on "toaster@yoctoproject.org" <toaster@yoctoproject.org>,
in CC here.

BTW, I'm on the #iotos channel now.

Alex

On Tue, Mar 17, 2015 at 11:50 AM, Kanevskiy, Alexander <
alexander.kanevskiy@intel.com> wrote:

> Alex, one liner fix :)
>
> diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
> index 7907b57..ceff747 100755
> --- a/bitbake/bin/toaster
> +++ b/bitbake/bin/toaster
> @@ -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:
>
> diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
> index 7907b57..ceff747 100755
> --- a/bitbake/bin/toaster
> +++ b/bitbake/bin/toaster
> @@ -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.
>



-- 
Alex Damian
Yocto Project
SSG / OTC

[-- Attachment #2: Type: text/html, Size: 3542 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: toaster under mac osx.
  2015-03-17 13:29 ` toaster under mac osx Damian, Alexandru
@ 2015-03-18  8:27   ` Alexander Kanevskiy
  2015-03-31 16:58     ` Damian, Alexandru
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kanevskiy @ 2015-03-18  8:27 UTC (permalink / raw)
  To: Damian, Alexandru; +Cc: toaster, Kanevskiy, Alexander

[-- Attachment #1: Type: text/plain, Size: 1956 bytes --]

On Tue, Mar 17, 2015 at 3:29 PM, Damian, Alexandru <
alexandru.damian@intel.com> wrote:

> Cool, thank you !
>
> Alex
>
> On Tue, Mar 17, 2015 at 11:50 AM, Kanevskiy, Alexander <
> alexander.kanevskiy@intel.com> wrote:
>
>> Alex, one liner fix :)
>>
>> diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
>> index 7907b57..ceff747 100755
>> --- a/bitbake/bin/toaster
>> +++ b/bitbake/bin/toaster
>> @@ -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
>>
>
small correction, -U parameter should be before pattern.
so, should be replaced with:

pkill -U $UID -f "python.*manage.py runserver"



>                 done;
>>                 rm  ${pidfile}
>>                 fi
>>
>>
>> or without bash-ism:
>>
>> diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
>> index 7907b57..ceff747 100755
>> --- a/bitbake/bin/toaster
>> +++ b/bitbake/bin/toaster
>> @@ -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.
>>
>
-- 
br, Alexander Kanevskiy

[-- Attachment #2: Type: text/html, Size: 3591 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: toaster under mac osx.
  2015-03-18  8:27   ` Alexander Kanevskiy
@ 2015-03-31 16:58     ` Damian, Alexandru
  0 siblings, 0 replies; 3+ messages in thread
From: Damian, Alexandru @ 2015-03-31 16:58 UTC (permalink / raw)
  To: Alexander Kanevskiy; +Cc: toaster, Kanevskiy, Alexander

[-- Attachment #1: Type: text/plain, Size: 2370 bytes --]

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

On Wed, Mar 18, 2015 at 8:27 AM, Alexander Kanevskiy <kad@kad.name> wrote:

> On Tue, Mar 17, 2015 at 3:29 PM, Damian, Alexandru <
> alexandru.damian@intel.com> wrote:
>
>> Cool, thank you !
>>
>> Alex
>>
>> On Tue, Mar 17, 2015 at 11:50 AM, Kanevskiy, Alexander <
>> alexander.kanevskiy@intel.com> wrote:
>>
>>> Alex, one liner fix :)
>>>
>>> diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
>>> index 7907b57..ceff747 100755
>>> --- a/bitbake/bin/toaster
>>> +++ b/bitbake/bin/toaster
>>> @@ -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
>>>
>>
> small correction, -U parameter should be before pattern.
> so, should be replaced with:
>
> pkill -U $UID -f "python.*manage.py runserver"
>
>
>
>>                 done;
>>>                 rm  ${pidfile}
>>>                 fi
>>>
>>>
>>> or without bash-ism:
>>>
>>> diff --git a/bitbake/bin/toaster b/bitbake/bin/toaster
>>> index 7907b57..ceff747 100755
>>> --- a/bitbake/bin/toaster
>>> +++ b/bitbake/bin/toaster
>>> @@ -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.
>>>
>>
> --
> br, Alexander Kanevskiy
>



-- 
Alex Damian
Yocto Project
SSG / OTC

[-- Attachment #2: Type: text/html, Size: 4648 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-31 16:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <D12DE191.63B6C%alexander.kanevskiy@intel.com>
2015-03-17 13:29 ` toaster under mac osx Damian, Alexandru
2015-03-18  8:27   ` Alexander Kanevskiy
2015-03-31 16:58     ` Damian, Alexandru

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.