Re: [systemd-devel] Rebooting systemd-nspawn container results in shutdown

2015-04-26 Thread Kai Krakow
Jonathan Liu schrieb: > On 27 April 2015 at 00:55, Kai Krakow wrote: >> I've successfully created a Gentoo container on top of a Gentoo host. I >> can start the container with machinectl, as I can with "systemctl start >> ...". >> >> Inside the container (logged in via SSH), I could issue a rebo

Re: [systemd-devel] Rebooting systemd-nspawn container results in shutdown

2015-04-26 Thread Jonathan Liu
On 27 April 2015 at 00:55, Kai Krakow wrote: > I've successfully created a Gentoo container on top of a Gentoo host. I can > start the container with machinectl, as I can with "systemctl start ...". > > Inside the container (logged in via SSH), I could issue a reboot command. > But that just resul

[systemd-devel] systemd-networkd and systemd-nspawn: missing host-side network

2015-04-26 Thread Kai Krakow
Hello! I've created a container with systemd-nspawn, "machinectl enable"d it, then added machines.target to my default target (systemctl enable machines.target) so that containers will be autostarted on boot. That works so far. But I discovered that systemd-networkd no longer configures my nor

Re: [systemd-devel] How can I map PID between host and container?

2015-04-26 Thread Kyungmin Park
On Fri, Apr 24, 2015 at 12:36 AM, Mantas Mikulėnas wrote: > On Thu, Apr 23, 2015 at 6:25 PM, Lennart Poettering > wrote: >> >> The kernel doesn't have any nice userspace APIs to translate PIDs like >> this, to my knowledge at least. >> >> That said, one can implement something like this by using

Re: [systemd-devel] [PATCH 2/2] sysv-generator: remove NULL pointer dereference

2015-04-26 Thread Shawn Landden
static void free_sysvstub_hashmapp(Hashmap **h) { while ((stub = hashmap_steal_first(*h))) _cleanup_ sends a pointer to the pointer. and then this dereferences that, which is kinda confusing, but yeah the code is correct, it would be clearer with DEFINE_TRIVIAL_CLEANUP_FUNC() On Sun, Ap

Re: [systemd-devel] [PATCH 2/2] sysv-generator: remove NULL pointer dereference

2015-04-26 Thread Thomas H.P. Andersen
On Sun, Apr 26, 2015 at 8:31 PM, Thomas H.P. Andersen wrote: > On Sun, Apr 26, 2015 at 8:23 PM, Shawn Landden wrote: >> Actually you missed that free_sysvstub_hashmap does not tolerate NULL >> pointers. > Indeed. I will commit that. Wait. free_sysvstub_hashmapp does tolerate NULL pointers. has

[systemd-devel] `journalctl -m` does not show /var/log/journal/remote/*

2015-04-26 Thread a
Hello, I have some remote journal from vps. It has come with systemd-journal{-remote,-upload}. ``` $ ls -l /var/log/journal/remote/ remote-10.8.0.2@b9e0664324d845afa9e8a4f9c17db0c8-0001-000513ba70b17fc3.journal remote-10.8.0.2@b9e0664324d845afa9e8a4f9c17db0c8-00d0-000513b

Re: [systemd-devel] [PATCH 2/2] sysv-generator: remove NULL pointer dereference

2015-04-26 Thread Thomas H.P. Andersen
On Sun, Apr 26, 2015 at 8:23 PM, Shawn Landden wrote: > Actually you missed that free_sysvstub_hashmap does not tolerate NULL > pointers. Indeed. I will commit that. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedes

Re: [systemd-devel] systemd-nspawn manpage: instructions for enabling container on boot

2015-04-26 Thread Sylvain Pasche
On 04/26/2015 07:40 PM, Kai Krakow wrote: Sylvain Pasche schrieb: I was looking for the instructions on how to enable a systemd-nspawn container on boot in the systemd-nspawn documentation. I saw that the example containing the "systemctl enable systemd-nspawn@CONTAINER.service" command was r

Re: [systemd-devel] [PATCH 2/2] sysv-generator: remove NULL pointer dereference

2015-04-26 Thread Shawn Landden
Actually you missed that free_sysvstub_hashmap does not tolerate NULL pointers. On Sun, Apr 26, 2015 at 11:21 AM, Shawn Landden wrote: > On Sun, Apr 26, 2015 at 11:15 AM, Thomas H.P. Andersen > wrote: >> Hi Shawn, >> >> I fixed this a few hours ago. I also updated the status in coverity. >> Is

Re: [systemd-devel] [PATCH 1/2] path-util: fix fd_is_mount_point

2015-04-26 Thread Thomas H.P. Andersen
On Sun, Apr 26, 2015 at 7:58 PM, Shawn Landden wrote: > (coverity) > --- > src/shared/path-util.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/shared/path-util.c b/src/shared/path-util.c > index 925bb28..95bfafc 100644 > --- a/src/shared/path-util.c > +++ b/src/sha

Re: [systemd-devel] [PATCH 2/2] sysv-generator: remove NULL pointer dereference

2015-04-26 Thread Shawn Landden
On Sun, Apr 26, 2015 at 11:15 AM, Thomas H.P. Andersen wrote: > Hi Shawn, > > I fixed this a few hours ago. I also updated the status in coverity. > Is there something else I can do to avoid duplicated work? I wasn't checking coverity, just reading the emails, so the duplicated work in on my end.

[systemd-devel] [PATCH] sysv-generator: do not dereference uninitilized data or NULL pointer

2015-04-26 Thread Shawn Landden
(coverity) v2 --- src/sysv-generator/sysv-generator.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c index 5ecd750..f56d727 100644 --- a/src/sysv-generator/sysv-generator.c +++ b/src/sysv-generator

Re: [systemd-devel] [PATCH 2/2] sysv-generator: remove NULL pointer dereference

2015-04-26 Thread Thomas H.P. Andersen
Hi Shawn, I fixed this a few hours ago. I also updated the status in coverity. Is there something else I can do to avoid duplicated work? On Sun, Apr 26, 2015 at 7:58 PM, Shawn Landden wrote: > (coverity) > --- > src/sysv-generator/sysv-generator.c | 2 +- > 1 file changed, 1 insertion(+), 1 de

[systemd-devel] [PATCH 1/2] path-util: fix fd_is_mount_point

2015-04-26 Thread Shawn Landden
(coverity) --- src/shared/path-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/path-util.c b/src/shared/path-util.c index 925bb28..95bfafc 100644 --- a/src/shared/path-util.c +++ b/src/shared/path-util.c @@ -627,7 +627,7 @@ fallback_fstat: a.st_in

[systemd-devel] [PATCH 2/2] sysv-generator: remove NULL pointer dereference

2015-04-26 Thread Shawn Landden
(coverity) --- src/sysv-generator/sysv-generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c index 5ecd750..714ce8f 100644 --- a/src/sysv-generator/sysv-generator.c +++ b/src/sysv-generator/sysv-ge

Re: [systemd-devel] systemd-nspawn manpage: instructions for enabling container on boot

2015-04-26 Thread Kai Krakow
Sylvain Pasche schrieb: > I was looking for the instructions on how to enable a systemd-nspawn > container on boot in the systemd-nspawn documentation. > > I saw that the example containing the "systemctl enable > systemd-nspawn@CONTAINER.service" command was removed in: > > commit e0ea94c1e2ab

[systemd-devel] systemd-nspawn manpage: instructions for enabling container on boot

2015-04-26 Thread Sylvain Pasche
Hi, I was looking for the instructions on how to enable a systemd-nspawn container on boot in the systemd-nspawn documentation. I saw that the example containing the "systemctl enable systemd-nspawn@CONTAINER.service" command was removed in: commit e0ea94c1e2ab3930c85c6057189a2a829a13a800 A

[systemd-devel] systemd-nspawn and IPv6

2015-04-26 Thread Kai Krakow
Hello! I've successfully created a Gentoo container on top of a Gentoo host. I can start the container with machinectl. I can also login using SSH. So mission almost accomblished (it should become a template for easy vserver cloning). But from within the IPv6-capable container I cannot access t

[systemd-devel] Rebooting systemd-nspawn container results in shutdown

2015-04-26 Thread Kai Krakow
Hello! I've successfully created a Gentoo container on top of a Gentoo host. I can start the container with machinectl, as I can with "systemctl start ...". Inside the container (logged in via SSH), I could issue a reboot command. But that just results in the container being shutdown. It never

Re: [systemd-devel] [systemd-nspawn] nginx: [emerg] open() "/dev/stderr" failed (6: No such device or address)

2015-04-26 Thread Peter Paule
Maybe syslog will do the trick? BTW: Do I need a syslog daemon to receive messages on UDP 514, or is/will be systemd-journal-remote able to handle this? Didn't found a clue about that in the man-page. ___ systemd-devel mailing list systemd-devel@lists.

Re: [systemd-devel] [systemd-nspawn] nginx: [emerg] open() "/dev/stderr" failed (6: No such device or address)

2015-04-26 Thread Peter Paule
Excerpts from Lennart Poettering's message of 2015-04-24 16:40:07 +0200: > > Hmm, I'm pretty sure the default StandardOutput=journal means stdout > > will be a socket connection to journald, doesn't it? > > Ah, true! > > > (And since it's a process-specific thing, "echo "asdf" > /dev/stdout" > >

Re: [systemd-devel] [systemd-nspawn] nginx: [emerg] open() "/dev/stderr" failed (6: No such device or address)

2015-04-26 Thread Peter Paule
> What happens if you use "dd" to write to /dev/stdout? Does that work, > too? (i think that bash handles /dev/stderr specially when you use it > with redirection, that's why I am asking). I modified the unit file to use dd instead of nginx. I can reproduce the issue. By mistake I forgot to add th