Re: [lxc-devel] [PATCH/RFC] Add lxc.stopsignal config option

2013-03-13 Thread Stéphane Graber
On 03/13/2013 08:19 PM, Stéphane Graber wrote: > On 03/13/2013 08:14 PM, Alexander Vladimirov wrote: >> I am unable to reproduce it with my containers, can you show config >> used to test? > > http://paste.ubuntu.com/5612341/ > > As far as we can tell so far, the code looks fine but something is

Re: [lxc-devel] [PATCH/RFC] Add lxc.stopsignal config option

2013-03-13 Thread Stéphane Graber
On 03/13/2013 08:14 PM, Alexander Vladimirov wrote: > I am unable to reproduce it with my containers, can you show config > used to test? http://paste.ubuntu.com/5612341/ As far as we can tell so far, the code looks fine but something is somehow setting the value in the struct to -1. It's not any

Re: [lxc-devel] [PATCH/RFC] Add lxc.stopsignal config option

2013-03-13 Thread Alexander Vladimirov
I am unable to reproduce it with my containers, can you show config used to test? 2013/3/14 Stéphane Graber : > On 03/12/2013 09:37 AM, Serge Hallyn wrote: >> Quoting Alexander Vladimirov (alexander.idkfa.vladimi...@gmail.com): >>> I remember discussion about implementing proper way to shutdown >>

Re: [lxc-devel] [PATCH/RFC] Add lxc.stopsignal config option

2013-03-13 Thread Stéphane Graber
On 03/12/2013 09:37 AM, Serge Hallyn wrote: > Quoting Alexander Vladimirov (alexander.idkfa.vladimi...@gmail.com): >> I remember discussion about implementing proper way to shutdown >> guests using different signals, so here's a patch proposal. >> It allows to use specific signal numbers to shutdow

Re: [lxc-devel] [PATCH/RFC] Add lxc.stopsignal config option

2013-03-12 Thread Serge Hallyn
Quoting Alexander Vladimirov (alexander.idkfa.vladimi...@gmail.com): > I remember discussion about implementing proper way to shutdown > guests using different signals, so here's a patch proposal. > It allows to use specific signal numbers to shutdown guests > gracefully, for example SIGRTMIN+4 sta

[lxc-devel] [PATCH/RFC] Add lxc.stopsignal config option

2013-03-12 Thread Alexander Vladimirov
I remember discussion about implementing proper way to shutdown guests using different signals, so here's a patch proposal. It allows to use specific signal numbers to shutdown guests gracefully, for example SIGRTMIN+4 starts poweroff.target in systemd. Signed-off-by: Alexander Vladimirov --- do