Re: [systemd-devel] networkd with radv advertised prefixes

2014-08-15 Thread Vasiliy Tolstov
2014-08-15 4:43 GMT+04:00 Lennart Poettering : > router advertisment allows passing along DNS server info. The kernel > can't make use of that, but we cetrainly should make use of it in > userspace. Yes, rdnss (DNS services) and dnssl (domain search list) -- Vasiliy Tolstov, e-mail: v.tols...@s

Re: [systemd-devel] [PATCH] core: don't complain if cgroup property is missing

2014-08-15 Thread Umut Tezduyar Lindskog
On Fri, Aug 15, 2014 at 2:45 AM, Lennart Poettering wrote: > On Fri, 15.08.14 02:42, Lennart Poettering (lenn...@poettering.net) wrote: > >> >> On Tue, 15.07.14 11:53, Umut Tezduyar Lindskog (umut.tezdu...@axis.com) >> wrote: >> >> Looks Ok, but doesn't apply to currently git anymore... > > (In c

Re: [systemd-devel] Changing configurations with networkd

2014-08-15 Thread Michael Olbrich
On Thu, Aug 14, 2014 at 05:38:05PM +0200, Lennart Poettering wrote: > On Fri, 25.07.14 09:48, Michael Olbrich (m.olbr...@pengutronix.de) wrote: > > > What I'm _not_ seeing, and what usually comes when anything else changes in > > the network configuration is: > > systemd-timesyncd[348]: Network co

Re: [systemd-devel] Pairing udev's SYSTEMD_WANTS and systemd's templated units

2014-08-15 Thread Harald Hoyer
On 14.08.2014 17:27, Lennart Poettering wrote: > On Thu, 14.08.14 17:10, Harald Hoyer (harald.ho...@gmail.com) wrote: > >> >> On 14.08.2014 13:00, Lennart Poettering wrote: >>> On Thu, 14.08.14 10:02, Ivan Shapovalov (intelfx...@gmail.com) wrote: >>> The only thing: PROGRAM="...", ENV{SYSTEMD

Re: [systemd-devel] eye of cylon / timeout timer is cut off

2014-08-15 Thread Harald Hoyer
On 14.08.2014 19:20, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Aug 14, 2014 at 06:44:03PM +0200, Michael Biebl wrote: >> 2014-08-14 18:36 GMT+02:00 Zbigniew Jędrzejewski-Szmek : >>> It would be more useful to remove the "/ 1min 30s" part. Maybe the cylon >>> code could be smart enough for that.

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread David Herrmann
Hi On Thu, Aug 14, 2014 at 8:07 PM, Lennart Poettering wrote: > On Fri, 18.07.14 16:02, Thomas H.P. Andersen (pho...@gmail.com) wrote: > >> 1716f6dcf54d4c181c2e2558e3d5414f54c8d9ca (resolved: add LLMNR support >> for looking up names) broke the build on clang. >> >> src/resolve/resolved-manager.c

Re: [systemd-devel] Implementing resume from hibernation as a systemd unit file

2014-08-15 Thread Ivan Shapovalov
On Thursday 14 August 2014 at 12:56:10, Lennart Poettering wrote: > On Thu, 14.08.14 09:20, Ivan Shapovalov (intelfx...@gmail.com) wrote: > > > The udev rule should be possible (provided that udevd does not need rootfs > > remounted read-write -- I'd like to preserve some decency towards >

Re: [systemd-devel] eye of cylon / timeout timer is cut off

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 10:22, Harald Hoyer (harald.ho...@gmail.com) wrote: > On 14.08.2014 19:20, Zbigniew Jędrzejewski-Szmek wrote: > > On Thu, Aug 14, 2014 at 06:44:03PM +0200, Michael Biebl wrote: > >> 2014-08-14 18:36 GMT+02:00 Zbigniew Jędrzejewski-Szmek : > >>> It would be more useful to remove th

Re: [systemd-devel] Implementing resume from hibernation as a systemd unit file

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 13:02, Ivan Shapovalov (intelfx...@gmail.com) wrote: Ah, well, if the resume= switch is supposed to simply carry the finished device node path, and nothing we still have to translate into one, then of course the entire udev rules step is unnecessary, and you can just write this ou

Re: [systemd-devel] Pairing udev's SYSTEMD_WANTS and systemd's templated units

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 09:58, Harald Hoyer (harald.ho...@gmail.com) wrote: > > On 14.08.2014 17:27, Lennart Poettering wrote: > > On Thu, 14.08.14 17:10, Harald Hoyer (harald.ho...@gmail.com) wrote: > > > >> > >> On 14.08.2014 13:00, Lennart Poettering wrote: > >>> On Thu, 14.08.14 10:02, Ivan Shapova

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread Thomas H.P. Andersen
On Fri, Aug 15, 2014 at 10:55 AM, David Herrmann wrote: > Hi > > On Thu, Aug 14, 2014 at 8:07 PM, Lennart Poettering > wrote: >> On Fri, 18.07.14 16:02, Thomas H.P. Andersen (pho...@gmail.com) wrote: >> >>> 1716f6dcf54d4c181c2e2558e3d5414f54c8d9ca (resolved: add LLMNR support >>> for looking up n

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 10:55, David Herrmann (dh.herrm...@gmail.com) wrote: > Hm, I don't know whether that works. See the description here: > https://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/Other-Builtins.html > > What you propose is something like my attached patch, I guess? Along > the lines of: >

Re: [systemd-devel] Logind error - Failed to abandon session scope: Connection reset

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 15:04, Roger Qiu (roger@polycademy.com) wrote: > > Hello Lennart, > > Thanks for answering. > > Is there any way to enforce ordering to make this error not occur? You could order systemd-logind.service After= dbus.service. That way dbus is started first, and logind second.

Re: [systemd-devel] [PATCH] core: don't complain if cgroup property is missing

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 09:12, Umut Tezduyar Lindskog (u...@tezduyar.com) wrote: > > On Fri, Aug 15, 2014 at 2:45 AM, Lennart Poettering > wrote: > > On Fri, 15.08.14 02:42, Lennart Poettering (lenn...@poettering.net) wrote: > > > >> > >> On Tue, 15.07.14 11:53, Umut Tezduyar Lindskog (umut.tezdu...@ax

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread David Herrmann
Hi On Fri, Aug 15, 2014 at 11:35 AM, Thomas H.P. Andersen wrote: > On Fri, Aug 15, 2014 at 10:55 AM, David Herrmann > wrote: >> Hi >> >> On Thu, Aug 14, 2014 at 8:07 PM, Lennart Poettering >> wrote: >>> On Fri, 18.07.14 16:02, Thomas H.P. Andersen (pho...@gmail.com) wrote: >>> 1716f6dcf54

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread David Herrmann
Hi On Fri, Aug 15, 2014 at 11:38 AM, Lennart Poettering wrote: > On Fri, 15.08.14 10:55, David Herrmann (dh.herrm...@gmail.com) wrote: > >> Hm, I don't know whether that works. See the description here: >> https://gcc.gnu.org/onlinedocs/gcc-4.3.3/gcc/Other-Builtins.html >> >> What you propose

Re: [systemd-devel] Implementing resume from hibernation as a systemd unit file

2014-08-15 Thread Ivan Shapovalov
On Friday 15 August 2014 at 11:32:59, Lennart Poettering wrote: > On Fri, 15.08.14 13:02, Ivan Shapovalov (intelfx...@gmail.com) wrote: > > Ah, well, if the resume= switch is supposed to simply carry the finished > device node path, and nothing we still have to translate into one, then > of cours

Re: [systemd-devel] Pairing udev's SYSTEMD_WANTS and systemd's templated units

2014-08-15 Thread Ivan Shapovalov
On Thursday 14 August 2014 at 13:00:50, Lennart Poettering wrote: > On Thu, 14.08.14 10:02, Ivan Shapovalov (intelfx...@gmail.com) wrote: > > > The only thing: PROGRAM="...", ENV{SYSTEMD_WANTS}+="...%c..." idiom seems a > > pretty ugly way to invoke systemd-escape. This looks like a pretty

Re: [systemd-devel] Implementing resume from hibernation as a systemd unit file

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 13:54, Ivan Shapovalov (intelfx...@gmail.com) wrote: > On Friday 15 August 2014 at 11:32:59, Lennart Poettering wrote: > > On Fri, 15.08.14 13:02, Ivan Shapovalov (intelfx...@gmail.com) wrote: > > > > Ah, well, if the resume= switch is supposed to simply carry the finished

Re: [systemd-devel] [PATCH] core: don't complain if cgroup property is missing

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 11:46, Lennart Poettering (lenn...@poettering.net) wrote: > > I think there is a misunderstanding. Cgroup properties do not exist if > > they are turned off. And since your concern is EACCESS, I think a > > "file exists?" check inside cg_set_attribute before we call > > "write_str

Re: [systemd-devel] Pairing udev's SYSTEMD_WANTS and systemd's templated units

2014-08-15 Thread Ivan Shapovalov
On Friday 15 August 2014 at 11:34:28, Lennart Poettering wrote: > On Fri, 15.08.14 09:58, Harald Hoyer (harald.ho...@gmail.com) wrote: > > > > > On 14.08.2014 17:27, Lennart Poettering wrote: > > > On Thu, 14.08.14 17:10, Harald Hoyer (harald.ho...@gmail.com) wrote: > > > > > >> > > >> On 14.08

Re: [systemd-devel] Implementing resume from hibernation as a systemd unit file

2014-08-15 Thread Ivan Shapovalov
On Friday 15 August 2014 at 12:00:41, Lennart Poettering wrote: > [...] > > > > > > > > So is "Before=local-fs-pre.target" a sufficient ordering for such > > > > resume unit? > > > > > > > > Again, the resume unit must be started before any filesystems are > > > > (re)mounted > > > > read-wri

Re: [systemd-devel] Changing configurations with networkd

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 09:12, Michael Olbrich (m.olbr...@pengutronix.de) wrote: > > On Thu, Aug 14, 2014 at 05:38:05PM +0200, Lennart Poettering wrote: > > On Fri, 25.07.14 09:48, Michael Olbrich (m.olbr...@pengutronix.de) wrote: > > > > > What I'm _not_ seeing, and what usually comes when anything el

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread Djalal Harouni
On Fri, Aug 15, 2014 at 10:55:57AM +0200, David Herrmann wrote: > Hi > > On Thu, Aug 14, 2014 at 8:07 PM, Lennart Poettering > wrote: > > On Fri, 18.07.14 16:02, Thomas H.P. Andersen (pho...@gmail.com) wrote: > > > >> 1716f6dcf54d4c181c2e2558e3d5414f54c8d9ca (resolved: add LLMNR support > >> for

Re: [systemd-devel] Implementing resume from hibernation as a systemd unit file

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 14:07, Ivan Shapovalov (intelfx...@gmail.com) wrote: > On Friday 15 August 2014 at 12:00:41, Lennart Poettering wrote: > > [...] > > > > > > > > > > So is "Before=local-fs-pre.target" a sufficient ordering for such > > > > > resume unit? > > > > > > > > > > Again, the r

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 11:49, David Herrmann (dh.herrm...@gmail.com) wrote: > If that still doesn't work, I guess we're left with your proposed > solution below, or we add MAX_CONST() which just does (A > B)?A:B. We could also just define MAX() differently if we detect we run on LLVM. There must be som

[systemd-devel] FW: systemd stopping daemons

2014-08-15 Thread Bonno Bloksma
Hi, Quoting a part of a discussion in debian-user that may be of interest to you . Bonno Bloksma -Oorspronkelijk bericht- Van: Bonno Bloksma Verzonden: vrijdag 15 augustus 2014 11:20 Aan: debian-u...@lists.debian.org Onderwerp: RE: systemd fails to poweroff - "A stop job is running for S

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread David Herrmann
Hi On Fri, Aug 15, 2014 at 12:29 PM, Thomas H.P. Andersen wrote: > On Fri, Aug 15, 2014 at 11:49 AM, David Herrmann > wrote: >> Thanks for trying! >> >> Result is as I expected. Evaluation takes place _after_ validating >> compile-time constants, and thus __builtin_constant_p in combination >>

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread Thomas H.P. Andersen
On Fri, Aug 15, 2014 at 12:35 PM, David Herrmann wrote: > Hi > > On Fri, Aug 15, 2014 at 12:29 PM, Thomas H.P. Andersen > wrote: >> On Fri, Aug 15, 2014 at 11:49 AM, David Herrmann >> wrote: >>> Thanks for trying! >>> >>> Result is as I expected. Evaluation takes place _after_ validating >>> c

Re: [systemd-devel] [PATCH] core: collapse JOB_RELOAD on an inactive unit into JOB_NOP

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 05:09, Uoti Urpala (uoti.urp...@pp1.inet.fi) wrote: > > > Before this commit systemctl reload on an inactive unit with a queued > > > start job would block until the unit had started if the unit supported > > > reload, but return failure immediately if the unit didn't. > > > > Th

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 12:40, Thomas H.P. Andersen (pho...@gmail.com) wrote: > > On Fri, Aug 15, 2014 at 12:35 PM, David Herrmann > wrote: > > Hi > > > > On Fri, Aug 15, 2014 at 12:29 PM, Thomas H.P. Andersen > > wrote: > >> On Fri, Aug 15, 2014 at 11:49 AM, David Herrmann > >> wrote: > >>> Thank

Re: [systemd-devel] Thoughts about /etc/crypttab keyscript options

2014-08-15 Thread Marc Haber
On Thu, Aug 14, 2014 at 08:18:10PM +0200, Lennart Poettering wrote: > On Thu, 14.08.14 20:10, Marc Haber (mh+systemd-de...@zugschlus.de) wrote: > > > Not aware of an C++ code. There's a vala one, and of course the one we > > > ship in systemd itself in C, but c++ i cannot help you with, sorry. > >

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread David Herrmann
Hi On Fri, Aug 15, 2014 at 12:40 PM, Thomas H.P. Andersen wrote: > On Fri, Aug 15, 2014 at 12:35 PM, David Herrmann > wrote: >> Hi >> >> On Fri, Aug 15, 2014 at 12:29 PM, Thomas H.P. Andersen >> wrote: >>> On Fri, Aug 15, 2014 at 11:49 AM, David Herrmann >>> wrote: Thanks for trying! >

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 13:00, David Herrmann (dh.herrm...@gmail.com) wrote: > > src/resolve/resolved-dns-stream.c:67:43: error: non-const static data > > member must be initialized out of line > > uint8_t buffer[CMSG_SPACE(MAX(sizeof(struct > > in_pktinfo), sizeof(struct in6_pktinfo))) >

Re: [systemd-devel] Thoughts about /etc/crypttab keyscript options

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 12:56, Marc Haber (mh+systemd-de...@zugschlus.de) wrote: > > > Is it possible to write a PasswordAgent in shell? Example code please > > > ;) > > > > Probably possible, after all bash allows you to talk to unix sockets and > > stuff. And you could probably put the protocol togeth

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread David Herrmann
Hi On Fri, Aug 15, 2014 at 1:22 PM, Lennart Poettering wrote: > On Fri, 15.08.14 13:00, David Herrmann (dh.herrm...@gmail.com) wrote: > >> > src/resolve/resolved-dns-stream.c:67:43: error: non-const static data >> > member must be initialized out of line >> > uint8_t buffer[CMSG_S

Re: [systemd-devel] Thoughts about /etc/crypttab keyscript options

2014-08-15 Thread Marc Haber
On Fri, Aug 15, 2014 at 01:30:32PM +0200, Lennart Poettering wrote: > On Fri, 15.08.14 12:56, Marc Haber (mh+systemd-de...@zugschlus.de) wrote: > > > > Is it possible to write a PasswordAgent in shell? Example code please > > > > ;) > > > > > > Probably possible, after all bash allows you to talk

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 13:42, David Herrmann (dh.herrm...@gmail.com) wrote: > > Hi > > On Fri, Aug 15, 2014 at 1:22 PM, Lennart Poettering > wrote: > > On Fri, 15.08.14 13:00, David Herrmann (dh.herrm...@gmail.com) wrote: > > > >> > src/resolve/resolved-dns-stream.c:67:43: error: non-const static dat

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread David Herrmann
Hi On Fri, Aug 15, 2014 at 1:53 PM, Lennart Poettering wrote: > On Fri, 15.08.14 13:42, David Herrmann (dh.herrm...@gmail.com) wrote: > >> >> Hi >> >> On Fri, Aug 15, 2014 at 1:22 PM, Lennart Poettering >> wrote: >> > On Fri, 15.08.14 13:00, David Herrmann (dh.herrm...@gmail.com) wrote: >> > >>

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread David Herrmann
Hi On Fri, Aug 15, 2014 at 1:53 PM, Lennart Poettering wrote: > On Fri, 15.08.14 13:42, David Herrmann (dh.herrm...@gmail.com) wrote: > >> >> Hi >> >> On Fri, Aug 15, 2014 at 1:22 PM, Lennart Poettering >> wrote: >> > On Fri, 15.08.14 13:00, David Herrmann (dh.herrm...@gmail.com) wrote: >> > >>

Re: [systemd-devel] [PATCH] resolved: fix warnings

2014-08-15 Thread Lennart Poettering
On Thu, 14.08.14 21:07, Daniel Buch (boogiewasth...@gmail.com) wrote: > I just hit this assert on my arch system with gcc 4.9, > > dbuch-laptop systemd-resolved[457]: Assertion 's->protocol == > DNS_PROTOCOL_LLMNR' failed at src/resolve/resolved-dns-scope.c:369 Yuck! Fixed now in git. Lennart

Re: [systemd-devel] [PATCH] resolved: don't fail if IPv6 is not available

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 08:41, Michael Olbrich (m.olbr...@pengutronix.de) wrote: > > On Wed, Aug 13, 2014 at 03:04:20PM +0200, Lennart Poettering wrote: > > I applied a different patch now that makes sure we either get the full > > IPv6 support or none at all, and doesn't generate a warning. > > > > Pl

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread David Herrmann
Hi On Fri, Jul 18, 2014 at 4:02 PM, Thomas H.P. Andersen wrote: > 1716f6dcf54d4c181c2e2558e3d5414f54c8d9ca (resolved: add LLMNR support > for looking up names) broke the build on clang. > > src/resolve/resolved-manager.c:553:43: error: non-const static data > member must be initialized out of lin

Re: [systemd-devel] [PATCH] Add DEPLOYMENT to hostnamectl

2014-08-15 Thread Lennart Poettering
On Tue, 08.07.14 16:52, David Timothy Strauss (da...@davidstrauss.net) wrote: > As someone who deploys developer VMs and production ones, this is > useful. Will it be possible to make units have ConditionDeployment=? > That would allow disabling, say, pushes of log messages to our log > aggregatio

Re: [systemd-devel] Extending machine-info to include machine roles

2014-08-15 Thread Lennart Poettering
On Tue, 08.07.14 23:07, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: > Now let's start the dialog with machine roles and start by agreeing > what roles are What's the latest on this? I'd be willing to take a patch for this, but he same rules as for deployment should apply: no strict checks

Re: [systemd-devel] [PATCH] readahead: add option to create pack in directory other than root

2014-08-15 Thread Lennart Poettering
On Tue, 08.07.14 14:38, Chaiken, Alison (alison_chai...@mentor.com) wrote: > >I am actually all for moving the file, though. But can't we find a more > >automatic solution for this, that doesn't > >require manual configuration. Maybe a scheme like this could work: > >a) readahead-reply would look

Re: [systemd-devel] [PATCH] readahead: add option to create pack in directory other than root

2014-08-15 Thread Lennart Poettering
On Tue, 08.07.14 19:02, Chaiken, Alison (alison_chai...@mentor.com) wrote: > > Lennart suggest: > >I am actually all for moving the file, though. But can't we find a more > >automatic solution for this, that doesn't > >require manual configuration. Maybe a scheme like this could work: > >a) reada

Re: [systemd-devel] User sessions: limit the ability to migrate cgroups

2014-08-15 Thread Daniel J Walsh
On 08/13/2014 12:11 PM, Alban Crequy wrote: > On Wed, 13 Aug 2014 16:37:17 +0200 > Lennart Poettering wrote: > >> On Thu, 07.08.14 15:19, Alban Crequy (alban.cre...@collabora.co.uk) >> wrote: >> >>> Hi, >>> >>> Should unprivileged processes be allowed to change cgroup? >> Well, they shouldn#t d

Re: [systemd-devel] How to suspend and wait for resume

2014-08-15 Thread Lennart Poettering
On Mon, 07.07.14 21:17, Maciej Piechotka (uzytkown...@gmail.com) wrote: > Hi, > > I have following problem. I'd like to suspend and then after the > system resumes execute a command - problem is that systemctl suspend > finishes immediately, without waiting for the resume. Is there a way > of

Re: [systemd-devel] [PATCH v3 2/3] cxgb4: use module_long_probe_init()

2014-08-15 Thread gre...@linuxfoundation.org
On Fri, Aug 15, 2014 at 02:14:58AM +0200, Luis R. Rodriguez wrote: > This driver also uses module_pci_driver() so a module_long_probe_driver() > and respective module_long_probe_pci_driver() would need to be considered > if but easily implemented (sent to Alex to test). No, don't create bus-only v

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread Daniele Nicolodi
On 15/08/2014 16:30, David Herrmann wrote: > Ok, took me a while, but I now figured out how to cause compilation to > fail even in expressions that initialize types (_Static_assert is not > allowed there): > #define assert_const(expr) > ((void)(__builtin_types_compatible_p(int[(expr) ? 1 : -1], i

Re: [systemd-devel] Inconsistent processing of 'debug' and 'systemd.log_level' options from kernel command line

2014-08-15 Thread Lennart Poettering
On Tue, 01.07.14 23:47, Mike Gilbert (flop...@gentoo.org) wrote: > I have noticed that when the 'debug' option is passed on the kernel > command line, it is impossible to override this using the > 'systemd.log_level' option. > > I also note that passing SYSTEMD_LOG_LEVEL on the kernel command lin

Re: [systemd-devel] compile with clang broken

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 17:22, Daniele Nicolodi (dani...@grinta.net) wrote: > > On 15/08/2014 16:30, David Herrmann wrote: > > Ok, took me a while, but I now figured out how to cause compilation to > > fail even in expressions that initialize types (_Static_assert is not > > allowed there): > > #defin

Re: [systemd-devel] Misleading udev error messages regarding virtual interfaces

2014-08-15 Thread Lennart Poettering
On Sun, 06.07.14 12:43, Leonid Isaev (lis...@umail.iu.edu) wrote: > Hi, > > Sorry for a delayed reply. > > On Thu, Jul 03, 2014 at 01:46:53PM +0200, Lennart Poettering wrote: > > it would be good to know what the precise error output is you get now > > with this new change... > > With systemd-2

Re: [systemd-devel] Work on adding polkit support to systemd1

2014-08-15 Thread Stef Walter
On 13.08.2014 20:27, Lennart Poettering wrote: > On Wed, 06.08.14 13:23, Stef Walter (st...@redhat.com) wrote: > >> I've done initial work on adding polkit support to systemd1 DBus >> methods. You can see it here: Thanks for the review. Worked on this a bit more. I might drop off the face of the

Re: [systemd-devel] systemd-hostnamed not shutting down when unused

2014-08-15 Thread Lennart Poettering
On Mon, 07.07.14 09:46, Umut Tezduyar Lindskog (u...@tezduyar.com) wrote: > > Hi, > > I have tested it and it is working on git. > > I dug this up to figure few things out on shutting down dbus activated > services when they are idle. Is it possible that follow up activation > request on a serv

Re: [systemd-devel] [RFC] [PATCH] Follow symlinks in /lib

2014-08-15 Thread Lennart Poettering
On Mon, 03.03.14 10:09, Michael Stapelberg (stapelb...@debian.org) wrote: Heya, Hmm, I think I never reviewed this patch. Sorry for the delay! It sometimes takes a while for me to review something, but this one is bd... Sorry for that. > > +#define FOLLOW_MAX 8 > + > static int unit_fi

Re: [systemd-devel] Work on adding polkit support to systemd1

2014-08-15 Thread Lennart Poettering
On Fri, 15.08.14 18:25, Stef Walter (st...@redhat.com) wrote: > > On 13.08.2014 20:27, Lennart Poettering wrote: > > On Wed, 06.08.14 13:23, Stef Walter (st...@redhat.com) wrote: > > > >> I've done initial work on adding polkit support to systemd1 DBus > >> methods. You can see it here: > > Tha

Re: [systemd-devel] [PATCH] core: collapse JOB_RELOAD on an inactive unit into JOB_NOP

2014-08-15 Thread Uoti Urpala
On Fri, 2014-08-15 at 12:50 +0200, Lennart Poettering wrote: > On Fri, 15.08.14 05:09, Uoti Urpala (uoti.urp...@pp1.inet.fi) wrote: > > > > > Before this commit systemctl reload on an inactive unit with a queued > > > > start job would block until the unit had started if the unit supported > > > >

Re: [systemd-devel] Work on adding polkit support to systemd1

2014-08-15 Thread Stef Walter
On 15.08.2014 18:56, Lennart Poettering wrote: > On Fri, 15.08.14 18:25, Stef Walter (st...@redhat.com) wrote: > >> >> On 13.08.2014 20:27, Lennart Poettering wrote: >>> On Wed, 06.08.14 13:23, Stef Walter (st...@redhat.com) wrote: >>> I've done initial work on adding polkit support to system

Re: [systemd-devel] [PATCH 1/2] bootchart: don't parse /proc/uptime, use CLOCK_BOOTTIME

2014-08-15 Thread Kok, Auke-jan H
thumbs up from me, thanks for sending this. Auke On Thu, Jul 31, 2014 at 1:15 AM, Karel Zak wrote: > * systemd-bootchart always parses /proc/uptime, although the > information is unnecessary when --rel specified > > * use /proc/uptime is overkill, since Linux 2.6.39 we have > clock_gettim

Re: [systemd-devel] [PATCH 2/2] bootchart: ask for --rel when failed to initialize graph start time

2014-08-15 Thread Kok, Auke-jan H
thanks! Auke On Sat, Aug 2, 2014 at 10:17 PM, Zbigniew Jędrzejewski-Szmek < zbys...@in.waw.pl> wrote: > On Thu, Jul 31, 2014 at 10:15:40AM +0200, Karel Zak wrote: > > This patch uses access("/proc/vmstat", F_OK) to detect procfs. > > > We always read system uptime before log start time. So the

Re: [systemd-devel] [HEADS-UP] Intent to remove readahead from systemd

2014-08-15 Thread Kok, Auke-jan H
On Thu, Aug 14, 2014 at 10:16 AM, Lennart Poettering wrote: > Heya, > > Since its early days systemd contained the systemd-readahead tool, whose > job was to improve boot times by reading files in their order on disk, > before they would actually be needed by applications. In times of SSD > the b

Re: [systemd-devel] [PATCH] core: collapse JOB_RELOAD on an inactive unit into JOB_NOP

2014-08-15 Thread Andrei Borzenkov
В Fri, 15 Aug 2014 20:25:57 +0300 Uoti Urpala пишет: > > > > > > What is your "desired state" for reload then? > > > > *operating* with the new configuration loaded. > > The problem with this is that it's common for things updating > configuration to be separate from things using the daemon.

Re: [systemd-devel] [PATCH] core: collapse JOB_RELOAD on an inactive unit into JOB_NOP

2014-08-15 Thread Uoti Urpala
On Fri, 2014-08-15 at 22:22 +0400, Andrei Borzenkov wrote: > В Fri, 15 Aug 2014 20:25:57 +0300 > Uoti Urpala пишет: > > The problem with this is that it's common for things updating > > configuration to be separate from things using the daemon. If something > > changes, the configuration update pa

Re: [systemd-devel] [PATCH] core: collapse JOB_RELOAD on an inactive unit into JOB_NOP

2014-08-15 Thread Michael Biebl
2014-08-15 12:50 GMT+02:00 Lennart Poettering : > I think most of the confusion here comes from the fact that sysv service > restarts don't care about ordering at all, really, and we do. But the > answer to that is not to weaken the current strong semantics of > blocking, but simply not to request

[systemd-devel] [PATCH kdbus] handle: Return POLLOUT | POLLWRNORM mask when no messages are pending

2014-08-15 Thread Marcel Holtmann
To facility the feature of doing an asynchronous sending of messages when the bus is idle, make sure to return POLLOUT | POLLWRNORM from kdbus_handle_poll. Signed-off-by: Marcel Holtmann --- handle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/handle.c b/handle.c index ac6868133280..fc

Re: [systemd-devel] [PATCH 1/2] bootchart: don't parse /proc/uptime, use CLOCK_BOOTTIME

2014-08-15 Thread Ronny Chevalier
2014-07-31 10:15 GMT+02:00 Karel Zak : Hi, > * systemd-bootchart always parses /proc/uptime, although the > information is unnecessary when --rel specified > > * use /proc/uptime is overkill, since Linux 2.6.39 we have > clock_gettime(CLOCK_BOOTTIME, ...). The backend on kernel side is > get

Re: [systemd-devel] [PATCH 1/2] bootchart: don't parse /proc/uptime, use CLOCK_BOOTTIME

2014-08-15 Thread Ronny Chevalier
2014-08-15 22:02 GMT+02:00 Ronny Chevalier : > 2014-07-31 10:15 GMT+02:00 Karel Zak : > Hi, > >> * systemd-bootchart always parses /proc/uptime, although the >> information is unnecessary when --rel specified >> >> * use /proc/uptime is overkill, since Linux 2.6.39 we have >> clock_gettime(CLOC

Re: [systemd-devel] [PATCH kdbus] handle: Return POLLOUT | POLLWRNORM mask when no messages are pending

2014-08-15 Thread Daniel Mack
Hi, On 08/15/2014 09:43 PM, Marcel Holtmann wrote: > To facility the feature of doing an asynchronous sending of messages > when the bus is idle, make sure to return POLLOUT | POLLWRNORM from > kdbus_handle_poll. > > Signed-off-by: Marcel Holtmann > --- > handle.c | 2 ++ > 1 file changed, 2 in

Re: [systemd-devel] [PATCH kdbus] handle: Return POLLOUT | POLLWRNORM mask when no messages are pending

2014-08-15 Thread Marcel Holtmann
Hi Daniel, >> To facility the feature of doing an asynchronous sending of messages >> when the bus is idle, make sure to return POLLOUT | POLLWRNORM from >> kdbus_handle_poll. >> >> Signed-off-by: Marcel Holtmann >> --- >> handle.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/ha

Re: [systemd-devel] Implementing resume from hibernation as a systemd unit file

2014-08-15 Thread Ivan Shapovalov
On Friday 15 August 2014 at 12:19:50, Lennart Poettering wrote: > [...] > > > > > > > > I'd like to make this work both with initramfs and without one > > > > (provided that > > > > the rootfs has been mounted read-only by using 'ro' kernel cmdline > > > > parameter). > > > > > > > > In this c