Re: [systemd-devel] Shutting down service using systemd-nspawn

2015-06-12 Thread Peter Paule
Not sure I follow: why do this indirectly by killing nspawn? Why not send this to the container init directly? Note that if you know the nspawn PID, you can derive the external PID of the init process easily by reading /proc/$PID/task/$PID/children. It will only container one PID, and

Re: [systemd-devel] Shutting down service using systemd-nspawn

2015-05-13 Thread Lennart Poettering
On Thu, 07.05.15 06:38, Peter Paule (systemd-de...@fedux.org) wrote: I implemented this now: http://cgit.freedesktop.org/systemd/systemd/commit/?id=c6c8f6e218995852350e5e35c080dec788c42c3f Thanks a lot. Sorry, have seen your mail to late - I'm trying out a new mua (sup) and I'm not

Re: [systemd-devel] Shutting down service using systemd-nspawn

2015-05-06 Thread Peter Paule
I implemented this now: http://cgit.freedesktop.org/systemd/systemd/commit/?id=c6c8f6e218995852350e5e35c080dec788c42c3f Thanks a lot. Sorry, have seen your mail to late - I'm trying out a new mua (sup) and I'm not that familiar with it yet. Do you think it makes sense to add something like

Re: [systemd-devel] Shutting down service using systemd-nspawn

2015-02-25 Thread Lennart Poettering
On Tue, 24.02.15 09:39, Peter Paule (systemd-de...@fedux.org) wrote: Hi, any suggestions to cleanly shutdown containers? If using defaults in a service file for stopping a container started with nspawn it will be killed by SIGTERM/SIGKILL. This makes systemd-nspawn to exit with 1 and the

Re: [systemd-devel] Shutting down service using systemd-nspawn

2015-02-25 Thread Lennart Poettering
On Wed, 25.02.15 20:35, Lennart Poettering (lenn...@poettering.net) wrote: I'd be willing to take a patch that adds --kill-signal= that allows changing the kill signal from SIGRTMIN+3 to anything else. With that you could use --kill-signal=SIGTERM to get the behaviour you want... I