Re: [systemd-devel] [RFC PATCH] service: add FailureAction= option

2014-04-10 Thread Lennart Poettering
On Wed, 26.03.14 10:02, Michael Olbrich (m.olbr...@pengutronix.de) wrote: > It has the same possible values as StartLimitAction= and is executed > immediately if a service fails. I think the enum type should probably be renamed to FailureAction, since that now sounds like the more generic name.

Re: [systemd-devel] auditd.service and RefuseManualStop

2014-04-10 Thread Lennart Poettering
On Thu, 03.04.14 18:00, Colin Guthrie (gm...@colin.guthr.ie) wrote: > Alternatively we can do "systemctl kill" in this case prior to uninstall > and that will work (systemctl kill does not respect RefuseManualStop). Yeah, this is probably what I'd do. > Anyway, just wanted to discuss the best ap

Re: [systemd-devel] Systemd 212 RemoveIPC=yes breaks postgresql

2014-04-10 Thread Lennart Poettering
On Wed, 02.04.14 15:53, Alex Hunsaker (bada...@gmail.com) wrote: > Systemd 212 defaults to remove all IPC (including SYSV memory) when a > user "fully" logs out. > > Because the postgresql service does not count as a login, if you ssh > in as postgres (I'm rsycing wal files) and then logout. Syst

Re: [systemd-devel] Masking .network files

2014-04-10 Thread Lennart Poettering
On Sat, 05.04.14 11:26, Tom Gundersen (t...@jklm.no) wrote: > > On Sat, Apr 5, 2014 at 12:43 AM, Leonid Isaev wrote: > > I seem to have a strange issue with the way networkd processes its > > configuration files. The machine is actually a systemd-nspawn container with > > a static IP add

[systemd-devel] [PATCH 3/3] nspawn: allow to bind mount journal on top of a non empty container journal dentry

2014-04-10 Thread Djalal Harouni
Currently if nspawn was called with --link-journal=host or --link-journal=auto and the right /var/log/journal/machine-id/ exists then the bind mount the subdirectory into the container might fail due to the ~/mycontainer/var/log/journal/machine-id/ of the container not being empty. There is no rea

[systemd-devel] [PATCH 2/3] nspawn: make nspawn able to cleanly terminate on container errors

2014-04-10 Thread Djalal Harouni
nspawn and the container child use eventfd to wait and notify each other that they are ready so the container setup can be completed. However in its current form the wait/notify event ignore errors that may especially affect the child (container). On errors the child will jump to the "child_fail"

[systemd-devel] [PATCH 1/3] nspawn: move container wait logic into wait_for_container() function

2014-04-10 Thread Djalal Harouni
Move the container wait logic into its own wait_for_container() function and add two status codes: CONTAINER_TERMINATED or CONTAINER_REBOOTED These status codes are used to terminate nspawn or loop again in case of CONTAINER_REBOOTED. --- src/nspawn/nspawn.c | 114

[systemd-devel] [PATCH 0/3] nspawn: make nspawn able to cleanly terminate - bug 76193

2014-04-10 Thread Djalal Harouni
Code cleaning and Fix bug: https://bugs.freedesktop.org/show_bug.cgi?id=76193 Thanks! ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] [RFC] Ignore OOMScoreAdjust in Linux containers

2014-04-10 Thread Lennart Poettering
On Fri, 11.04.14 02:23, Lennart Poettering (lenn...@poettering.net) wrote: > > On Wed, 09.04.14 19:39, Richard Weinberger (rich...@nod.at) wrote: > > > I'm also fine with ignoring OOMScoreAdjust if it fails. > > All I want is a painless Linux userspace on top of systemd within > > my Containers.

Re: [systemd-devel] [PATCH] [RFC] Ignore OOMScoreAdjust in Linux containers

2014-04-10 Thread Lennart Poettering
On Wed, 09.04.14 19:39, Richard Weinberger (rich...@nod.at) wrote: > I'm also fine with ignoring OOMScoreAdjust if it fails. > All I want is a painless Linux userspace on top of systemd within > my Containers. :-) It appears to me as if this should just result in a debug message that the oom scor

Re: [systemd-devel] Failed to start Sendmail Mail Transport Agent

2014-04-10 Thread Lennart Poettering
On Fri, 28.03.14 15:41, Lee Atkinson (linuxle...@gmail.com) wrote: > Hi! > > I am new to sendmail. I have been at this for days ..reading the Fedora 18 > Users Guide and other documentation on various sites.. > > The port 25 is open, however I can not seem to get the service started and > there

Re: [systemd-devel] [ANNOUNCE] systemd 212

2014-04-10 Thread Lennart Poettering
On Fri, 28.03.14 10:22, Thomas Bächler (tho...@archlinux.org) wrote: > Am 26.03.2014 00:28, schrieb Kay Sievers: > > * Timer units gained a new Persistent= switch. If enabled > > timers configured this way will save to disk when they have > > been last triggered. This i

Re: [systemd-devel] [PATCH] units: add ConditionPathIsReadWrite for systemd-random-seed.service

2014-04-10 Thread Jonathan Liu
On 11/04/2014 7:10 AM, Lennart Poettering wrote: On Thu, 10.04.14 14:00, Jonathan Liu (net...@gmail.com) wrote: --- units/systemd-random-seed.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/units/systemd-random-seed.service.in b/units/systemd-random-seed.service.in index 1879

[systemd-devel] networkd slaac and radv

2014-04-10 Thread Vasiliy Tolstov
Hello. How can i via networkd can configure network interface to use radv provided prefixes? For example after boot interface is up and have SLAAC generated address (link local) after its receives ra it have global prefix. -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru jabber: v...@selfip.ru __

Re: [systemd-devel] [PATCH] run systemd-tmpfiles-clean only when we have AC power

2014-04-10 Thread Lennart Poettering
On Thu, 03.04.14 15:42, Cristian Rodríguez (crrodrig...@opensuse.org) wrote: > While it is cool to be neat and clean all the time, this > task can wait if we are on battery. > --- > units/systemd-tmpfiles-clean.service.in | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/units/systemd-tmp

Re: [systemd-devel] [PATCH] units: add ConditionPathIsReadWrite for systemd-random-seed.service

2014-04-10 Thread Lennart Poettering
On Thu, 10.04.14 14:00, Jonathan Liu (net...@gmail.com) wrote: > --- > units/systemd-random-seed.service.in | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/units/systemd-random-seed.service.in > b/units/systemd-random-seed.service.in > index 1879b2f..cbe000c 100644 > --- a/units/system

Re: [systemd-devel] [PATCH] Document CONFIG_NET_NS as a required kernel option

2014-04-10 Thread Lennart Poettering
On Thu, 10.04.14 10:21, Thomas Bächler (tho...@archlinux.org) wrote: > Am 10.04.2014 03:35, schrieb Lennart Poettering: > >> Simply try: > >> int func(...) { > >> static bool network_namespace_warning = false; > >> ... > >> > >> if (!network_namespace_warning) { > >> netw

Re: [systemd-devel] [PATCH] fstab-generator: local-fs.target waits for nofail mounts

2014-04-10 Thread Andrey Borzenkov
В Thu, 10 Apr 2014 09:46:56 -0400 Vivek Goyal пишет: > On Thu, Apr 10, 2014 at 06:38:59AM +0400, Andrey Borzenkov wrote: > > [..] > > > So with nofail opion for rootfs we should have following situation. > > > > > > - sysroot.mount > > > Before=initrd-root-fs.target > > > - initrd-root-fs.tar

Re: [systemd-devel] System locale not set in tty

2014-04-10 Thread Armin K.
On 04/10/2014 04:13 PM, Mike Gilbert wrote: > On Thu, Apr 10, 2014 at 10:04 AM, Armin K. wrote: >> On 03/25/2014 05:35 PM, Armin K. wrote: >>> Hello there, >>> >>> I'm using stock systemd-211 release and I have noticed today that locale >>> isn't set anymore in tty. >>> >>> My X session, which run

Re: [systemd-devel] [PATCH 1/2] EnvironmentFile: don't drop backslashes inside single quotes

2014-04-10 Thread Lukáš Nykrýn
Čt 10. duben 2014, 15:52:56 CEST, Zbigniew Jędrzejewski-Szmek napsal: On Thu, Apr 10, 2014 at 03:17:20PM +0200, Lukas Nykryn wrote: --- src/shared/fileio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/fileio.c b/src/shared/fileio.c index f101269..0eb131d 10

Re: [systemd-devel] System locale not set in tty

2014-04-10 Thread Mike Gilbert
On Thu, Apr 10, 2014 at 10:04 AM, Armin K. wrote: > On 03/25/2014 05:35 PM, Armin K. wrote: >> Hello there, >> >> I'm using stock systemd-211 release and I have noticed today that locale >> isn't set anymore in tty. >> >> My X session, which runs on tty1 has the locale correctly set up, but >> whe

Re: [systemd-devel] System locale not set in tty

2014-04-10 Thread Armin K.
On 03/25/2014 05:35 PM, Armin K. wrote: > Hello there, > > I'm using stock systemd-211 release and I have noticed today that locale > isn't set anymore in tty. > > My X session, which runs on tty1 has the locale correctly set up, but > when I swich to tty2 and log in, the locale is set to POSIX,

Re: [systemd-devel] [PATCH] nspawn: Fix erroneous OOM when building group list

2014-04-10 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Apr 09, 2014 at 07:08:45PM +0200, Philip Lorenz wrote: > change_uid_gid() never initialises sz which may cause greedy_realloc to > skip the initial buffer allocation. Applied, thanks. Zbyszek ___ systemd-devel mailing list systemd-devel@lists.fre

Re: [systemd-devel] [PATCH 1/2] EnvironmentFile: don't drop backslashes inside single quotes

2014-04-10 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Apr 10, 2014 at 03:17:20PM +0200, Lukas Nykryn wrote: > --- > src/shared/fileio.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/src/shared/fileio.c b/src/shared/fileio.c > index f101269..0eb131d 100644 > --- a/src/shared/fileio.c > +++ b/src/shared/fileio.c >

Re: [systemd-devel] [PATCH] fstab-generator: local-fs.target waits for nofail mounts

2014-04-10 Thread Vivek Goyal
On Thu, Apr 10, 2014 at 06:38:59AM +0400, Andrey Borzenkov wrote: [..] > > So with nofail opion for rootfs we should have following situation. > > > > - sysroot.mount > > Before=initrd-root-fs.target > > - initrd-root-fs.target > > Requires=sysroot.mount > > OnFailure=emergency.target

[systemd-devel] [PATCH 1/2] EnvironmentFile: don't drop backslashes inside single quotes

2014-04-10 Thread Lukas Nykryn
--- src/shared/fileio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/fileio.c b/src/shared/fileio.c index f101269..0eb131d 100644 --- a/src/shared/fileio.c +++ b/src/shared/fileio.c @@ -446,11 +446,12 @@ static int parse_env_file_internal(

[systemd-devel] [PATCH 2/2] machine: quote a scope name in machine_save

2014-04-10 Thread Lukas Nykryn
Currently serialization in machined does not work for some names because parse_env_file is dropping backslashes from values. Than gc deletes the machine because it is unable to find the scope. --- src/machine/machine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine

[systemd-devel] [PATCH] doc: fix items' names in PORTING-DBUS1

2014-04-10 Thread Lukasz Skalski
--- src/libsystemd/sd-bus/PORTING-DBUS1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-bus/PORTING-DBUS1 b/src/libsystemd/sd-bus/PORTING-DBUS1 index f2ebcd7..6205e32 100644 --- a/src/libsystemd/sd-bus/PORTING-DBUS1 +++ b/src/libsystemd/sd-bus/PORTING-DBUS1 @

[systemd-devel] [PATCH] libnetworkd: only allow positive ifindex

2014-04-10 Thread Umut Tezduyar Lindskog
From: Umut Tezduyar Lindskog --- src/libsystemd-network/sd-dhcp-client.c |2 +- src/libsystemd-network/sd-ipv4ll.c|2 +- src/libsystemd-network/test-dhcp-client.c |4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libsystemd-network/sd-dhcp-client.c

Re: [systemd-devel] [PATCH] Document CONFIG_NET_NS as a required kernel option

2014-04-10 Thread Colin Guthrie
'Twas brillig, and Tollef Fog Heen at 10/04/14 07:53 did gyre and gimble: > ]] Lennart Poettering > >> Maybe we shouldn't bother too much with making this one-time. Maybe >> instead we should print it all the time, but simply at debug log level, >> so that this isnt too visible... > > It's just

Re: [systemd-devel] [PATCH 1/2] systemctl: delete REBOOT_PARAM_FILE if no parameter is specified

2014-04-10 Thread Michael Olbrich
On Tue, Mar 25, 2014 at 02:15:44PM +0100, Michael Olbrich wrote: > And move it to sperate function. Ping! No comments at all? Michael > --- > src/shared/util.c | 16 > src/shared/util.h | 2 ++ > src/systemctl/systemctl.c | 9 +++-- > 3 files changed, 21 i

Re: [systemd-devel] [PATCH] Document CONFIG_NET_NS as a required kernel option

2014-04-10 Thread Thomas Bächler
Am 10.04.2014 03:35, schrieb Lennart Poettering: >> Simply try: >> int func(...) { >> static bool network_namespace_warning = false; >> ... >> >> if (!network_namespace_warning) { >> network_namespace_warning = true; >> log_warn("..."); >> } >> } >> >> Zbyszek