Re: [systemd-devel] systemd-networkd and openvswitch?

2015-05-18 Thread Lennart Poettering
On Sat, 16.05.15 13:39, Marc Haber (mh+systemd-de...@zugschlus.de) wrote: Hi, is there any possibility to nicely integrate openvswitch to a system that runs systemd-networkd? While I understand that there does not currrently seem to be native openvswitch support in systemd-networkd, maybe

Re: [systemd-devel] clarification on daemon-reload

2015-05-18 Thread Lennart Poettering
On Sun, 17.05.15 10:06, Igor Bukanov (i...@mir2.org) wrote: Hello, suppose a unit B runs just because another unit A contains Requires=B and After=B. When B runs, it changes A like adding new dependencies, altering Exec command etc and then B calls systemctl daemon-reload. Then the systemd

Re: [systemd-devel] systemd-nspawn trouble

2015-05-18 Thread Lennart Poettering
On Sun, 17.05.15 17:30, Michael Biebl (mbi...@gmail.com) wrote: 2015-05-15 22:16 GMT+02:00 Tom Gundersen t...@jklm.no: on-demand I agree with Lennart that it makes the most sense to simply unconditionally load the modules. If this is undesirable the solution should be to teach the kernel

Re: [systemd-devel] 60-persistent-storage.rules: add NVMe disks and partitions (again)

2015-05-18 Thread Lennart Poettering
On Sat, 16.05.15 10:18, Per Bergqvist (p...@bst.lu) wrote: Lennart, Thank you for all the comments. I have changed everything except the 'No space between function name and opening “(“‘. Cannot find anything about that in CODING_STYLE or evidence in other sources. Hmm? This is from

Re: [systemd-devel] [PATCH] nspawn: cloexec extraneous fds

2015-05-18 Thread Alban Crequy
On Mon, May 18, 2015 at 2:00 PM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 18.05.15 10:34, Alban Crequy (al...@endocode.com) wrote: On Wed, May 13, 2015 at 6:14 PM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 11.05.15 16:41, Alban Crequy (alban.cre...@gmail.com)

Re: [systemd-devel] [PATCH v2] hostname: Allow comments in /etc/hostname

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 12:36, Martin Pitt (martin.p...@ubuntu.com) wrote: static int read_and_strip_hostname(const char *path, char **hn) { -char *s; -int r; +_cleanup_fclose_ FILE *f = NULL; +char l[LINE_MAX]; +char *s = NULL; assert(path);

Re: [systemd-devel] [PATCH 1/3] core: Add LISTEN_NAMES environment variable

2015-05-18 Thread Krzysztof Opasiak
On 05/16/2015 11:28 PM, Zbigniew Jędrzejewski-Szmek wrote: On Fri, May 15, 2015 at 05:35:48PM +0200, Lennart Poettering wrote: On Fri, 15.05.15 17:09, Krzysztof Opasiak (k.opas...@samsung.com) wrote: When passing file descriptors to service systemd pass also two environment variable: -

Re: [systemd-devel] [PATCH] nspawn: close extra fds before execing init

2015-05-18 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:1431960330-19357-1-git-send-email-alban%40endocode.com -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing

Re: [systemd-devel] [PATCH 2/3] sd-daemon: Use LISTEN_NAMES env when available

2015-05-18 Thread Krzysztof Opasiak
On 05/15/2015 05:40 PM, Lennart Poettering wrote: On Fri, 15.05.15 17:09, Krzysztof Opasiak (k.opas...@samsung.com) wrote: LISTEN_NAMES environment variable contains details about received file descriptors. Let's try to use it instead of doing always two stats. I am really not convinced

[systemd-devel] [PATCH] nspawn: close extra fds before execing init

2015-05-18 Thread Alban Crequy
From: Alban Crequy al...@endocode.com When systemd-nspawn gets exec*()ed, it inherits the followings file descriptors: - 0, 1, 2: stdin, stdout, stderr - SD_LISTEN_FDS_START, ... SD_LISTEN_FDS_START+LISTEN_FDS: file descriptors passed by the system manager (useful for socket activation). They

Re: [systemd-devel] clarification on daemon-reload

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 07:51, Igor Bukanov (i...@mir2.org) wrote: On 18 May 2015 at 05:35, Andrei Borzenkov arvidj...@gmail.com wrote: What exactly do you mean? It has RefuseManualStart set? I meant that, for example, A is enabled and contains Requires=B and this is the only dependency that

Re: [systemd-devel] Fwd: [wiki systemd] systemd French doc

2015-05-18 Thread Lennart Poettering
On Sat, 16.05.15 17:43, Jiel Beaumadier (beaumad...@gmail.com) wrote: Hi, A French documentation was written about systemd : http://lea-linux.org/documentations/Systemd Its main scope is the general public. The documentation tends to be as pedagogic as possible. I think that it could be

Re: [systemd-devel] Fwd: [wiki systemd] systemd French doc

2015-05-18 Thread Lennart Poettering
On Sat, 16.05.15 22:18, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Sat, May 16, 2015 at 05:43:13PM +0200, Jiel Beaumadier wrote: Hi, A French documentation was written about systemd : http://lea-linux.org/documentations/Systemd Its main scope is the general public.

Re: [systemd-devel] dev-root.device is not active, results in an umount spree

2015-05-18 Thread Martin Pitt
Lennart Poettering [2015-05-18 14:10 +0200]: The whole point of the tentative state is that devices showing up in /proc/self/mountinfo but not in /sys are put in it. Are you saying that does not work? Simple demonstration with some bind mount: # systemd-nspawn -b -D /tmp/myroot --bind

Re: [systemd-devel] tentative state and unmount on mapper

2015-05-18 Thread Martin Pitt
the fs. I stumbled over this as well. This is fixed in the 0002-* patch in http://lists.freedesktop.org/archives/systemd-devel/2015-May/031953.html Direct link: http://lists.freedesktop.org/archives/systemd-devel/attachments/20150518/09d36e6f/attachment-0001.patch This is caused

Re: [systemd-devel] dev-root.device is not active, results in an umount spree

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 06:41, Martin Pitt (martin.p...@ubuntu.com) wrote: Lennart Poettering [2015-05-17 18:06 +0200]: More specifically, they should follow the second item in the Execution Environment section: pre-mount /sys read-only in the container. That's the default indeed, but you can

Re: [systemd-devel] [PATCH/resend] Use reflinking to copy kernel

2015-05-18 Thread Simon McVittie
On 18/05/15 13:15, Lennart Poettering wrote: --reflink=auto is the default in cp since a while. I think you're thinking of recent mv versions, or a patched coreutils? cp in current coreutils git never reflinks http://git.savannah.gnu.org/cgit/coreutils.git/tree/src/cp.c#n785 unless explictly

Re: [systemd-devel] [PATCH 1/3] core: Add LISTEN_NAMES environment variable

2015-05-18 Thread Krzysztof Opasiak
Hi, On 05/15/2015 05:35 PM, Lennart Poettering wrote: On Fri, 15.05.15 17:09, Krzysztof Opasiak (k.opas...@samsung.com) wrote: When passing file descriptors to service systemd pass also two environment variable: - LISTEN_PID - PID of service - LISTEN_FDS - Number of file descriptors passed

Re: [systemd-devel] [PATCH/resend] Use reflinking to copy kernel

2015-05-18 Thread Lennart Poettering
On Sat, 16.05.15 22:16, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Fri, May 08, 2015 at 05:11:15PM -0400, Josh Boyer wrote: On May 8, 2015 11:38 AM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Thu, May 07, 2015 at 10:08:56PM -0400, Matthew Miller wrote:

[systemd-devel] tentative state and unmount on mapper

2015-05-18 Thread Umut Tezduyar Lindskog
Hi, There have been few discussions about tentative state and unmounting and I am experiencing different problem in the same device logic. I am at 219 + 628c89cc + 496068a8 + 5259bcf6 I have 2 mounts (one is bind mount) on mapper device. /proc/self/mountinfo: 47 37 254:0 /

Re: [systemd-devel] [PATCH] nspawn: cloexec extraneous fds

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 10:34, Alban Crequy (al...@endocode.com) wrote: On Wed, May 13, 2015 at 6:14 PM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 11.05.15 16:41, Alban Crequy (alban.cre...@gmail.com) wrote: src/nspawn/nspawn.c | 9 - 1 file changed, 8 insertions(+), 1

Re: [systemd-devel] [PATCH 2/5] shared/json: JSON parser + number tokenizer bugfix

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 10:45, Pavel Odvody (podv...@redhat.com) wrote: Yes, it could be handled, but I wouldn't call it nicely :) Since there's a lot of nested objects / arrays I guess that you'd need to do the syntactic analysis anyway. It'd be even worse in case some values would shadow

[systemd-devel] Setting UseDomains=yes by default DHCP

2015-05-18 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Aug 14, 2014 at 01:27:19PM +0200, Tom Gundersen wrote: On Thu, Aug 14, 2014 at 1:11 PM, Lennart Poettering lenn...@poettering.net wrote: UseDomain= should have the effect of adding the domains from dhcp option 15 and 119 to the list of domains for the interface. And

Re: [systemd-devel] Fwd: [wiki systemd] systemd French doc

2015-05-18 Thread Jiel A. Beaumadier
Hi, A French documentation was written about systemd : http://lea-linux.org/documentations/Systemd I still think you should cut systemadm entirely out. Unfortunately it's not only unstable, but also there's little hope of it improving. Zbyszek Done. Thanks ! -- Jiel

Re: [systemd-devel] dev-root.device is not active, results in an umount spree

2015-05-18 Thread Martin Pitt
Hello Lennart, Lennart Poettering [2015-05-18 14:10 +0200]: I don't really grok what the problem you are experencing is supposed to be: note that a device showing up in /proc/self/mountinfo means it will be set to tentative state, and thus will not resolve in an unmount. What more do you

Re: [systemd-devel] [PATCH/resend] Use reflinking to copy kernel

2015-05-18 Thread Zbigniew Jędrzejewski-Szmek
On Mon, May 18, 2015 at 02:15:09PM +0200, Lennart Poettering wrote: On Sat, 16.05.15 22:16, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Fri, May 08, 2015 at 05:11:15PM -0400, Josh Boyer wrote: On May 8, 2015 11:38 AM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote:

Re: [systemd-devel] [PATCH] fstab-generator: add x-systemd.requires and x-systemd.requires-mounts-for

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 12:30, Karel Zak (k...@redhat.com) wrote: Currently we have no way how to specify dependencies between fstab entries (or another units) in the /etc/fstab. It means that users are forced to bypass fstab and write .mount units manually. The patch introduces new systemd fstab

Re: [systemd-devel] [correct PATCH v2] dev-root.device is not active, results in an umount spree

2015-05-18 Thread Martin Pitt
Martin Pitt [2015-05-17 15:54 +0200]: This fixes the original systemd immediately unmounts my mounts bug, but not for very long: If you remount or unmount just one mount on a tentative device, mountinfo changes, and device_found_node() now calls device_update_found_one() with add == 0. Then

Re: [systemd-devel] [PATCH/resend] Use reflinking to copy kernel

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 13:56, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: On 18/05/15 13:15, Lennart Poettering wrote: --reflink=auto is the default in cp since a while. I think you're thinking of recent mv versions, or a patched coreutils? Oh indeed, I noticed this behaviour on

[systemd-devel] [PATCH] hwdb: Add trackpoint sensitivity setting for Thinkpad X230 tablet

2015-05-18 Thread Hans de Goede
This model needs the trackpoint sensitivity to be boosted to not be too slow to be usable, see: https://bugzilla.redhat.com/show_bug.cgi?id=1200717 --- hwdb/70-pointingstick.hwdb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hwdb/70-pointingstick.hwdb b/hwdb/70-pointingstick.hwdb index

[systemd-devel] [PATCH v2] buildsys: actually install 70-pointingstick.hwdb

2015-05-18 Thread Mantas Mikulėnas
--- *sigh* Tabs. Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index 4639b2f..5bcbfff 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3913,6 +3913,7 @@ dist_udevhwdb_DATA = \ hwdb/60-evdev.hwdb \ hwdb/60-keyboard.hwdb \

Re: [systemd-devel] [PATCH] nspawn: cloexec extraneous fds

2015-05-18 Thread Alban Crequy
On Wed, May 13, 2015 at 6:14 PM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 11.05.15 16:41, Alban Crequy (alban.cre...@gmail.com) wrote: src/nspawn/nspawn.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c

Re: [systemd-devel] [PATCH 2/5] shared/json: JSON parser + number tokenizer bugfix

2015-05-18 Thread Pavel Odvody
On Fri, 2015-05-15 at 17:11 +0200, Lennart Poettering wrote: On Fri, 15.05.15 17:05, Pavel Odvody (podv...@redhat.com) wrote: On Fri, 2015-05-15 at 16:12 +0200, Lennart Poettering wrote: On Fri, 15.05.15 16:03, Pavel Odvody (podv...@redhat.com) wrote: On Fri, 2015-05-15 at 15:23

Re: [systemd-devel] clarification on daemon-reload

2015-05-18 Thread Andrei Borzenkov
On Mon, May 18, 2015 at 8:51 AM, Igor Bukanov i...@mir2.org wrote: On 18 May 2015 at 05:35, Andrei Borzenkov arvidj...@gmail.com wrote: What exactly do you mean? It has RefuseManualStart set? I meant that, for example, A is enabled and contains Requires=B and this is the only dependency

Re: [systemd-devel] [PATCH] hwdb: Add trackpoint sensitivity setting for Thinkpad X230 tablet

2015-05-18 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:1431935640-3635-1-git-send-email-hdegoede%40redhat.com -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing

[systemd-devel] [PATCH] buildsys: actually install 70-pointingstick.hwdb

2015-05-18 Thread Mantas Mikulėnas
--- Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.am b/Makefile.am index 4639b2f..0b5b488 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3913,6 +3913,7 @@ dist_udevhwdb_DATA = \ hwdb/60-evdev.hwdb \ hwdb/60-keyboard.hwdb \ hwdb/70-mouse.hwdb \ +

Re: [systemd-devel] [PATCH] .gitignore: add GNU GLOBAL files

2015-05-18 Thread Łukasz Stelmach
It was 2015-05-15 pią 18:36, when Dimitri John Ledkov wrote: On 15 May 2015 at 17:19, Łukasz Stelmach l.stelm...@samsung.com wrote: It was 2015-05-15 pią 18:03, when Lennart Poettering wrote: On Fri, 15.05.15 17:39, Łukasz Stelmach (l.stelm...@samsung.com) wrote: It was 2015-05-15 pią 17:25,

Re: [systemd-devel] [PATCH v2] systemctl: introduce --now for enable, disable and mask

2015-05-18 Thread Lennart Poettering
On Sat, 16.05.15 08:24, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: On 05/15/2015 09:51 AM, Lennart Poettering wrote: But anyway, this is certainly a matter of taste... Or cause for confusion. I asked an noob to run systemctl enable --now unit and he immediately asked back if he

Re: [systemd-devel] Setting UseDomains=yes by default DHCP

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 12:26, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: I now agree with what Lennart proposed too. This is partially implemented now, and with UseDomains=yes, option 15 is used to to set 'search' field. I think we should go a step further, and set UseDomains=yes by

Re: [systemd-devel] Basic network with Fedora conatiner

2015-05-18 Thread Lennart Poettering
On Wed, 29.04.15 15:36, arnaud gaboury (arnaud.gabo...@gmail.com) wrote: After installation of Fedora 22 container, the container (poppy) boots but no network. # journalctl -b -M poppy Apr 29 14:02:20 poppy firewalld[28]: 2015-04-29 14:02:20 ERROR: ebtables not usable,

Re: [systemd-devel] timers always run when time changes

2015-05-18 Thread Lennart Poettering
On Fri, 01.05.15 09:35, Likang Wang (labor...@gmail.com) wrote: Hi all, I hava a timer with the fellowing setting: # cat /lib/systemd/system/updateimage.timer [Unit] Description=Update image DefaultDependencies=false [Timer] OnCalendar=*-*-* 02:00:00 Persistent=false [Install]

Re: [systemd-devel] Fall back to shell and still see failure

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 13:23, Chris Morin (chris.mor...@gmail.com) wrote: Hi During a normal boot on my system, the last service to launch starts a special shell which isn't your standard linux shell. Unfortunately, before getting to that service, there is a long chain of dependencies which

Re: [systemd-devel] 'Failed at step NAMESPACE spawning' when using ReadOnlyDirectories in multi-instance service file

2015-05-18 Thread Lennart Poettering
On Wed, 29.04.15 19:34, nusenu (nus...@openmailbox.org) wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi, I'm running into a problem with systemd's hardening features ReadOnlyDirectories and ReadWriteDirectories *when* using them in multi-instance service files - temp.

Re: [systemd-devel] [PATCH 1/3] core: Add LISTEN_NAMES environment variable

2015-05-18 Thread Zbigniew Jędrzejewski-Szmek
On Mon, May 18, 2015 at 06:01:10PM +0200, Lennart Poettering wrote: Being able to attach a name to the fds is hence really useful. logind could use this to attach the session identifier to the fds, and would hence be able to safely map the fds back to their sessions after coming back from a

[systemd-devel] Fall back to shell and still see failure

2015-05-18 Thread Chris Morin
Hi During a normal boot on my system, the last service to launch starts a special shell which isn't your standard linux shell. Unfortunately, before getting to that service, there is a long chain of dependencies which have to run. I want to drop to a normal linux shell when any of these

Re: [systemd-devel] Reduce unit-loading time

2015-05-18 Thread cee1
Hi Martin, At the first glance, I find ureadahead has some difference compared with the readahead once in systemd, IIRC: 1. ureadahead.service is in default.target, which means ureadahead starts later than systemd's? 2. The original systemd readahead has collect and replay two services, and

Re: [systemd-devel] clarification on daemon-reload

2015-05-18 Thread Igor Bukanov
On 18 May 2015 at 17:18, Lennart Poettering lenn...@poettering.net wrote: Well, my recommendation is to avoid daemon-reloads during the normal boot process if possible, since there are some unresolved issues: What is then a canonical way to implement initialization when the configuration comes

Re: [systemd-devel] clarification on daemon-reload

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 17:53, Igor Bukanov (i...@mir2.org) wrote: On 18 May 2015 at 17:18, Lennart Poettering lenn...@poettering.net wrote: Well, my recommendation is to avoid daemon-reloads during the normal boot process if possible, since there are some unresolved issues: What is then a

Re: [systemd-devel] [PATCH 1/3] core: Add LISTEN_NAMES environment variable

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 16:37, Krzysztof Opasiak (k.opas...@samsung.com) wrote: Why it the motivation? Patch description talks tabout passing the path/address in LISTEN_NAMES. Isn't this something that can be queried already? TODO talks about identifiers. Is identifier the same thing, or did the

Re: [systemd-devel] Automatic user ACL management

2015-05-18 Thread Lennart Poettering
On Sun, 17.05.15 14:20, Mikhail Morfikov (mmorfi...@gmail.com) wrote: allow-module-loading = no allow-exit = no system-instance = yes enable-shm = no exit-idle-time = -20 then I started pulseaudio in the system mode and I was able to play sound all the time. But there's another question

Re: [systemd-devel] Will *.network replace resolv.conf? What about Options single-request?

2015-05-18 Thread Lennart Poettering
On Sat, 16.05.15 15:52, Alexander E. Patrakov (patra...@gmail.com) wrote: 16.05.2015 02:01, Christian Brunotte wrote: The resolver can send one DNS request packet (IPv4 or IPv6 doesn't matter) that contains queries for both the A and entries and the resolver may answer them in

Re: [systemd-devel] Automatic user ACL management

2015-05-18 Thread Mikhail Morfikov
On Mon, 18 May 2015 17:38:33 +0200 Lennart Poettering lenn...@poettering.net wrote: On Sun, 17.05.15 12:46, Mikhail Morfikov (mmorfi...@gmail.com) wrote: As you can read, for instance here ( http://enotty.pipebreaker.pl/2012/05/23/linux-automatic-user-acl-management/ ), logind, which

Re: [systemd-devel] socket-activated containers with domain sockets

2015-05-18 Thread Lennart Poettering
On Sat, 16.05.15 16:01, Simon Peeters (peeters.si...@gmail.com) wrote: hej all. I have a kind off weird setup using socket-activated containers: nginx on the host listens on port 80 and has a 'proxy_pass http://unix:/run/http/$host;' directive. then I have webserver@.socket listening

Re: [systemd-devel] [PATCH] [PATCH v4] core: Private*/Protect* options with RootDirectory

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 12:20, Alban Crequy (alban.cre...@gmail.com) wrote: From: Alban Crequy al...@endocode.com When a service is chrooted with the option RootDirectory=/opt/..., then the options PrivateDevices, PrivateTmp, ProtectHome, ProtectSystem must mount the directories under

Re: [systemd-devel] Will *.network replace resolv.conf? What about Options single-request?

2015-05-18 Thread Lennart Poettering
On Fri, 15.05.15 23:01, Christian Brunotte (c...@lathspell.de) wrote: Lennart Poettering lenn...@poettering.net hat am 15. Mai 2015 um 21:59 geschrieben: On Mon, 04.05.15 14:57, Christian Brunotte (c...@lathspell.de) wrote: Hello systemd.network(5) with Options like DNS=

Re: [systemd-devel] Automatic user ACL management

2015-05-18 Thread Lennart Poettering
On Sun, 17.05.15 12:46, Mikhail Morfikov (mmorfi...@gmail.com) wrote: As you can read, for instance here ( http://enotty.pipebreaker.pl/2012/05/23/linux-automatic-user-acl-management/ ), logind, which is a part of systemd, can set permissions to some devices for user sessions. There's also a

Re: [systemd-devel] [PATCH 1/3] core: Add LISTEN_NAMES environment variable

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 10:19, Richard Maw (richard@codethink.co.uk) wrote: On Sat, May 16, 2015 at 09:28:22PM +, Zbigniew Jędrzejewski-Szmek wrote: Why it the motivation? Patch description talks tabout passing the path/address in LISTEN_NAMES. Isn't this something that can be queried

Re: [systemd-devel] Reduce unit-loading time

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 18:24, cee1 (fykc...@gmail.com) wrote: 2015-05-17 17:45 GMT+08:00 Martin Pitt martin.p...@ubuntu.com: Hello cee, cee1 [2015-05-16 0:46 +0800]: Thanks for the suggestion, it was other processes running in parallel which presumably consuming lots of IO, after sending

Re: [systemd-devel] [PATCH v2] networkd: do not change kernel forwarding parameters when IPForwarding is unset

2015-05-18 Thread Lennart Poettering
On Fri, 15.05.15 22:49, Tom Gundersen (t...@jklm.no) wrote: On Fri, May 15, 2015 at 10:02 PM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 15.05.15 12:56, Michael Marineau (michael.marin...@coreos.com) wrote: (build time option to ./configure that is) I guess I'd be OK

Re: [systemd-devel] Will *.network replace resolv.conf? What about Options single-request?

2015-05-18 Thread Lennart Poettering
On Sat, 16.05.15 14:30, Mantas Mikulėnas (graw...@gmail.com) wrote: And I think that glibc does something similar. If it receives a truncated packet, it tries to get the full packet over TCP and only if the DNS server does not support TCP, it delivers the truncated data. Hmm, what

Re: [systemd-devel] Automatic user ACL management

2015-05-18 Thread Mikhail Morfikov
On Mon, 18 May 2015 18:18:57 +0200 Lennart Poettering lenn...@poettering.net wrote: On Mon, 18.05.15 18:16, Mikhail Morfikov (mmorfi...@gmail.com) wrote: Something is wrong. I did the following steps: $ newgrp audio In the log I have the following message: May 18 18:02:19

Re: [systemd-devel] [PATCH 1/3] core: Add LISTEN_NAMES environment variable

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 15:36, Krzysztof Opasiak (k.opas...@samsung.com) wrote: Passing both type and path allows us to determine type of socket without any syscall. But how is that beneficial? THese sycalls are not slow, and this is not perfoimance sensitive anyway... It is much faster as there

Re: [systemd-devel] 'Failed at step NAMESPACE spawning' when using ReadOnlyDirectories in multi-instance service file

2015-05-18 Thread nusenu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I'm running into a problem with systemd's hardening features ReadOnlyDirectories and ReadWriteDirectories *when* using them in multi-instance service files - temp. workaround was to disable them [1]. - - that the service works fine *with*

Re: [systemd-devel] Fall back to shell and still see failure

2015-05-18 Thread Chris Morin
I was hoping that was it, but it turns out that emergency.service is already of type idle. I know the console port is very slow on my device. Could this be caused by some kind of buffer flushing? This is the output on the console port: == [ OK ] Started Chasfs Flashutil.

Re: [systemd-devel] [PATCH 1/3] core: Add LISTEN_NAMES environment variable

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 17:55, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Mon, May 18, 2015 at 06:01:10PM +0200, Lennart Poettering wrote: Being able to attach a name to the fds is hence really useful. logind could use this to attach the session identifier to the fds, and would

Re: [systemd-devel] 'Failed at step NAMESPACE spawning' when using ReadOnlyDirectories in multi-instance service file

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 18:31, nusenu (nus...@openmailbox.org) wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I'm running into a problem with systemd's hardening features ReadOnlyDirectories and ReadWriteDirectories *when* using them in multi-instance service files - temp. workaround

Re: [systemd-devel] Fall back to shell and still see failure

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 15:23, Chris Morin (chris.mor...@gmail.com) wrote: I was hoping that was it, but it turns out that emergency.service is already of type idle. I know the console port is very slow on my device. Could this be caused by some kind of buffer flushing? This is the output on the

Re: [systemd-devel] [correct PATCH v2] dev-root.device is not active, results in an umount spree

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 16:08, Martin Pitt (martin.p...@ubuntu.com) wrote: Change device_found_node() to also create a .device unit if a device is not known by udev; this is the case for tentative devices picked up by mountinfo (DEVICE_FOUND_MOUNT). With that we can record the found attribute on the

Re: [systemd-devel] [correct PATCH v2] dev-root.device is not active, results in an umount spree

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 16:08, Martin Pitt (martin.p...@ubuntu.com) wrote: Martin Pitt [2015-05-17 15:54 +0200]: This fixes the original systemd immediately unmounts my mounts bug, but not for very long: If you remount or unmount just one mount on a tentative device, mountinfo changes, and

[systemd-devel] [PATCH v4] nvme_id utility + support in 60-persistent-storage.rules

2015-05-18 Thread Per Bergqvist
--- Makefile.am | 11 +++ rules/60-persistent-storage.rules | 5 ++ src/udev/nvme_id/nvme_id.c| 147 ++ 3 files changed, 163 insertions(+) create mode 100644 src/udev/nvme_id/nvme_id.c diff --git a/Makefile.am b/Makefile.am

Re: [systemd-devel] [PATCH 2/3] sd-daemon: Use LISTEN_NAMES env when available

2015-05-18 Thread Filipe Brandenburger
Hi, On Mon, May 18, 2015 at 7:26 AM, Krzysztof Opasiak k.opas...@samsung.com wrote: Matching between fds and list of expected paths is done in n^2 I don't think that's the case, because you can just stat() all the names and fstat() all the fds, then sort both lists on inode numbers and then

Re: [systemd-devel] [PATCH v3] journalctl: Improve boot ID lookup

2015-05-18 Thread Lennart Poettering
On Fri, 01.05.15 15:15, Jan Janssen (medhe...@web.de) wrote: This method should greatly improve offset based lookup, by simply jumping from one boot to the next boot. It starts at the journal head to get the a boot ID, makes a _BOOT_ID match and then comes from the opposite journal direction

Re: [systemd-devel] [PATCH 2/3] sd-daemon: Use LISTEN_NAMES env when available

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 16:26, Krzysztof Opasiak (k.opas...@samsung.com) wrote: Please, let's keep this simple: LISTEN_NAMES should only carry actual names, nothing else, and let's query the kernel for the actual fd types. I'm not sure if doing stat() to determine how he should interpret content

[systemd-devel] [PATCH] zsh-completion: fix completion of --user services

2015-05-18 Thread Eric Cook
By the time __systemctl is called, --user/--system are shifted out of `words' by _arguments. This patch queries the array sooner. In the case that both --user and --system are on the line when compsys runs, _sys_service_mgr is set to the latter. Which is seemingly how systemctl behaves. If

Re: [systemd-devel] Fwd: [systemd-208][PATCH] Force machined to dispatch messages

2015-05-18 Thread Lennart Poettering
On Wed, 29.04.15 10:06, solganik (solga...@gmail.com) wrote: From: Alexander Solganik solga...@gmail.com Fixes https://bugzilla.redhat.com/show_bug.cgi?format=multipleid=1172387. Machined works in the follwing way : Hmm, is that an issue with current systemd? AFAICs it really isn't as

Re: [systemd-devel] resolved crashes on SIGTERM

2015-05-18 Thread Lennart Poettering
On Mon, 11.05.15 22:00, Cristian Rodríguez (cristian.rodrig...@opensuse.org) wrote: resolved crashes on SIGTERM with ... Fixed in git. Please verify. Lennart -- Lennart Poettering, Red Hat ___ systemd-devel mailing list

Re: [systemd-devel] resolved: Assertion 'n 0' failed

2015-05-18 Thread Lennart Poettering
On Sat, 18.04.15 17:38, Kai Krakow (hurikha...@gmail.com) wrote: Hello! Sometimes I'm seeing messages like this: [ 5780.379921] systemd-resolved[685]: Assertion 'n 0' failed at /var/tmp/portage/sys-apps/systemd-219- r2/work/systemd-219/src/resolve/resolved-dns-answer.c:28, function

Re: [systemd-devel] [RFC] exec: introduce StandardOutputFile/StandardErrorFile option

2015-05-18 Thread WaLyong Cho
On 2015년 05월 19일 12:53, Andrei Borzenkov wrote: В Tue, 19 May 2015 11:49:45 +0900 WaLyong Cho walyong@samsung.com пишет: On 2015년 05월 19일 11:44, WaLyong Cho wrote: To redirect stdout/stderr to file add 'file' option to StandardOutput/StandardError. And to specify the file path, add

Re: [systemd-devel] [RFC] exec: introduce StandardOutputFile/StandardErrorFile option

2015-05-18 Thread WaLyong Cho
On 2015년 05월 19일 11:44, WaLyong Cho wrote: To redirect stdout/stderr to file add 'file' option to StandardOutput/StandardError. And to specify the file path, add StandardOutputFile/StandardErrorFile option. If only set StandardOutput/StandardError to 'file' without set of

Re: [systemd-devel] [RFC] exec: introduce StandardOutputFile/StandardErrorFile option

2015-05-18 Thread Andrei Borzenkov
В Tue, 19 May 2015 11:49:45 +0900 WaLyong Cho walyong@samsung.com пишет: On 2015년 05월 19일 11:44, WaLyong Cho wrote: To redirect stdout/stderr to file add 'file' option to StandardOutput/StandardError. And to specify the file path, add StandardOutputFile/StandardErrorFile option. If

[systemd-devel] [RFC] exec: introduce StandardOutputFile/StandardErrorFile option

2015-05-18 Thread WaLyong Cho
To redirect stdout/stderr to file add 'file' option to StandardOutput/StandardError. And to specify the file path, add StandardOutputFile/StandardErrorFile option. If only set StandardOutput/StandardError to 'file' without set of StandardOutputFile/StandardErrorFile option, then it will be

[systemd-devel] [PATCH v3] hostname: Allow comments in /etc/hostname

2015-05-18 Thread Martin Pitt
Hey Lennart, Lennart Poettering [2015-05-18 17:12 +0200]: This code will result in ENOENT being returned on OOM... That's not right... Fixed. Also consider using strstrip() here. hostname_cleanup() already filters out whitespace, so I don't think that's needed? Given that this same code is

Re: [systemd-devel] systemd-218 - Requisite implies TriggeredByRestartOf

2015-05-18 Thread Lennart Poettering
On Thu, 14.05.15 21:23, Evert (evert.gen...@planet.nl) wrote: Hi, According to the systemd documentation, Requisite disallows starting a unit unless the specified unit has been started. This seems to work fine, however, if the specified unit has been restarted, this unit will be started

Re: [systemd-devel] systemd-218 - Requisite implies TriggeredByRestartOf

2015-05-18 Thread Lennart Poettering
On Tue, 19.05.15 00:55, Lennart Poettering (lenn...@poettering.net) wrote: On Thu, 14.05.15 21:23, Evert (evert.gen...@planet.nl) wrote: Hi, According to the systemd documentation, Requisite disallows starting a unit unless the specified unit has been started. This seems to work

Re: [systemd-devel] [PATCH] nspawn: close extra fds before execing init

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 16:45, Alban Crequy (alban.cre...@gmail.com) wrote: From: Alban Crequy al...@endocode.com When systemd-nspawn gets exec*()ed, it inherits the followings file descriptors: - 0, 1, 2: stdin, stdout, stderr - SD_LISTEN_FDS_START, ... SD_LISTEN_FDS_START+LISTEN_FDS: file

Re: [systemd-devel] tentative state and unmount on mapper

2015-05-18 Thread Lennart Poettering
On Mon, 18.05.15 15:59, Umut Tezduyar Lindskog (u...@tezduyar.com) wrote: Hi, There have been few discussions about tentative state and unmounting and I am experiencing different problem in the same device logic. I am at 219 + 628c89cc + 496068a8 + 5259bcf6 I have 2 mounts (one is bind

Re: [systemd-devel] resolved crashes on SIGTERM

2015-05-18 Thread Cristian Rodríguez
On Mon, May 18, 2015 at 6:25 PM, Lennart Poettering lenn...@poettering.net wrote: Fixed in git. Please verify. It is OK now.. Thank you. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] [PATCH] zsh-completion: fix completion of --user services

2015-05-18 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:1431989131-25145-1-git-send-email-llua%40gmx.com -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing list

Re: [systemd-devel] clarification on daemon-reload

2015-05-18 Thread Alexandre Detiste
Le lundi 18 mai 2015, 07:51:18 Igor Bukanov a écrit : What I would like to know is what is the exact behavior of systemctl daemon-reload. I am writing a service that creates/modifies other units by placing files under /run and I would like to know what are the limitations. In my case I cannot

Re: [systemd-devel] [PATCH 6/6] zsh-completion: make the arrays _sys_active_units, _sys_startable_units and _sys_restartable_units local to the completer.

2015-05-18 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:1431925363-8526-6-git-send-email-llua%40gmx.com -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing list

[systemd-devel] [PATCH v2 5/6] zsh-completion: removing more pointless forks

2015-05-18 Thread Eric Cook
I seem to have forgot about _systemctl_active_units(). --- shell-completion/zsh/_systemctl.in | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in index a4db563..d3e7ee2

Re: [systemd-devel] [PATCH 3/5] test/test-json: Tests for the JSON parser and the tokenizer bugfix

2015-05-18 Thread Pavel Odvody
On Fri, 2015-05-15 at 17:24 +0200, Lennart Poettering wrote: On Thu, 07.05.15 17:47, Pavel Odvody (podv...@redhat.com) wrote: Signed-off-by: Pavel Odvody podv...@redhat.com --- src/test/test-json.c | 16 1 file changed, 16 insertions(+) diff --git

Re: [systemd-devel] [PATCH 1/6] zsh-completion: actually run _filter_units_by_property when creating the arrays _sys_(re|)startable_units

2015-05-18 Thread Zbigniew Jędrzejewski-Szmek
Applied all 6. Zbyszek ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] [PATCH] hostname: Allow comments in /etc/hostname

2015-05-18 Thread Martin Pitt
Hello all, We got a report [1] that systemd doesn't allow comments in /etc/hostname. If there is a comment, your host name ends up being # comment. But the original hostname(1) tool documents that comments are allowed, thus in the sysvinit/upstart world these worked fine. Earlier versions of

Re: [systemd-devel] [PATCH] hostname: Allow comments in /etc/hostname

2015-05-18 Thread Thomas H.P. Andersen
On Mon, May 18, 2015 at 11:33 AM, Martin Pitt martin.p...@ubuntu.com wrote: Hello all, We got a report [1] that systemd doesn't allow comments in /etc/hostname. If there is a comment, your host name ends up being # comment. But the original hostname(1) tool documents that comments are

Re: [systemd-devel] dev-root.device is not active, results in an umount spree

2015-05-18 Thread Martin Pitt
Andrei Borzenkov [2015-05-14 14:24 +0300]: Will it be rebound when device appears? Otherwise any mount that happens before udev is started/happens to notice device will not be associated with device. Most common case is probably mounts inherited from initrd. Not with the first patch (the one

Re: [systemd-devel] [PATCH] hostname: Allow comments in /etc/hostname

2015-05-18 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:20150518093303.GF4392%40piware.de -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing list

Re: [systemd-devel] systemd-nspawn trouble

2015-05-18 Thread Tom Gundersen
On Sun, May 17, 2015 at 5:30 PM, Michael Biebl mbi...@gmail.com wrote: 2015-05-15 22:16 GMT+02:00 Tom Gundersen t...@jklm.no: on-demand I agree with Lennart that it makes the most sense to simply unconditionally load the modules. If this is undesirable the solution should be to teach the

Re: [systemd-devel] [PATCH] hwdb: Add trackpoint sensitivity setting for Thinkpad X230 tablet

2015-05-18 Thread Zbigniew Jędrzejewski-Szmek
On Mon, May 18, 2015 at 09:54:00AM +0200, Hans de Goede wrote: This model needs the trackpoint sensitivity to be boosted to not be too slow to be usable, see: https://bugzilla.redhat.com/show_bug.cgi?id=1200717 --- hwdb/70-pointingstick.hwdb | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [systemd-devel] [PATCH] buildsys: actually install 70-pointingstick.hwdb

2015-05-18 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:1431936845-354327-1-git-send-email-grawity%40gmail.com -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing

  1   2   >