Re: [systemd-devel] Service on-demand stop.

2014-12-03 Thread Jóhann B. Guðmundsson
On 12/03/2014 07:04 AM, Andrey Shinkevich wrote: Please refer me to online documentation, if any, on how to stop systemd and D-Bus services on-demand. Thank you in advance! Take a look at [1] and in addition you can always look at the source code for an existing component that does what

Re: [systemd-devel] Detecting inactive sessions

2014-12-03 Thread Bastien Nocera
On Wed, 2014-12-03 at 02:41 +0100, Lennart Poettering wrote: On Wed, 19.11.14 00:46, Bastien Nocera (had...@hadess.net) wrote: On Tue, 2014-11-18 at 19:32 +0100, Bastien Nocera wrote: On Tue, 2014-11-11 at 16:46 +0100, Lennart Poettering wrote: snip I am willing to take a patch for

Re: [systemd-devel] [PATCH] localed: log xkbcommon errors

2014-12-03 Thread Lennart Poettering
On Wed, 03.12.14 07:56, Jan Synacek (jsyna...@redhat.com) wrote: The errors are prefixed with libxkbcommon to provide some context, because they are quite confusing without it. With the prefix, we at least know where they come from. --- src/locale/localed.c | 17 + 1 file

[systemd-devel] [PATCH v2] localed: log xkbcommon errors

2014-12-03 Thread Jan Synacek
The errors are prefixed with libxkbcommon to provide some context, because they are quite confusing without it. With the prefix, we at least know where they come from. --- Changes in v2: - don't log a null message if vasprintf() fails src/locale/localed.c | 19 +++ 1 file

[systemd-devel] [PATCH v9] tmpfiles, man: Add xattr support to tmpfiles

2014-12-03 Thread Maciej Wereski
This patch makes it possible to set extended attributes on files created by tmpfiles. This can be especially used to set SMACK security labels on volatile files and directories. It is done by adding new line of type t. Such line should contain attributes in Argument field, using following format:

Re: [systemd-devel] job_type_lookup_merge assertion failure in systemd

2014-12-03 Thread Steven Noonan
On Tue, Dec 2, 2014 at 5:34 PM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 12.11.14 09:57, Steven Noonan (ste...@uplinklabs.net) wrote: Hi all, I've been seeing this happen every now and then on a couple machines. When I wake up in the morning and go to log in, I find X11

Re: [systemd-devel] [PATCH v2] localed: log xkbcommon errors

2014-12-03 Thread Lennart Poettering
On Wed, 03.12.14 14:56, Jan Synacek (jsyna...@redhat.com) wrote: The errors are prefixed with libxkbcommon to provide some context, because they are quite confusing without it. With the prefix, we at least know where they come from. Applied the patch bug simplified log_xkb a bit by just

Re: [systemd-devel] [PATCH v9] tmpfiles, man: Add xattr support to tmpfiles

2014-12-03 Thread Lennart Poettering
On Wed, 03.12.14 15:33, Maciej Wereski (m.were...@partner.samsung.com) wrote: +static int get_xattrs_from_arg(Item *i) { +char *xattr, *name, *value; +const char *p; +int r; Please declare name and value in the inner scope, no need to define them broader than

Re: [systemd-devel] Service on-demand stop.

2014-12-03 Thread Lennart Poettering
On Wed, 03.12.14 10:04, Andrey Shinkevich (andys...@mail.ru) wrote: Please refer me to online documentation, if any, on how to stop systemd and D-Bus services on-demand. Thank you in advance! There isn't really any docs. It's mostly a matter of simply making services exit when they decide

Re: [systemd-devel] [PATCH v4 1/4] bus: StartTransientUnit can have aux unit

2014-12-03 Thread Lennart Poettering
On Tue, 02.12.14 23:29, WaLyong Cho (walyong@samsung.com) wrote: --- src/core/dbus-manager.c | 123 +--- 1 file changed, 105 insertions(+), 18 deletions(-) diff --git a/src/core/dbus-manager.c b/src/core/dbus-manager.c index

Re: [systemd-devel] [PATCH v4 2/4] timer: timer can be a transient unit

2014-12-03 Thread Lennart Poettering
On Tue, 02.12.14 23:29, WaLyong Cho (walyong@samsung.com) wrote: --- src/core/dbus-timer.c | 159 ++ src/core/dbus-timer.h | 3 + src/core/timer.c | 4 ++ 3 files changed, 166 insertions(+) diff --git a/src/core/dbus-timer.c

[systemd-devel] [HEADSUP] Next systemd Hackfest takes place at FOSDEM 2015, January 30th, Brussels!

2014-12-03 Thread Lennart Poettering
Heya, Harald organized a room for our next Hackfest now, on January 30th, 2015, one day before FOSDEM 2015 in Brussels, Belgium. For details please see: https://plus.google.com/events/c56kbn26s6g01n6m4tj2nmdgnfc If you intend to show up it would be nice to sign up on the Google Event, so that

Re: [systemd-devel] [PATCH v4 3/4] unit: add UnitMask enum and get unit scope(mask) api from property

2014-12-03 Thread Lennart Poettering
On Tue, 02.12.14 23:29, WaLyong Cho (walyong@samsung.com) wrote: Hmm, what's the rationale for this? Can you elaborate? --- Makefile.am | 7 ++ src/shared/.gitignore| 1 + src/shared/unit-name.c | 22

Re: [systemd-devel] [PATCH v4] run: introduce timer support option

2014-12-03 Thread Lennart Poettering
On Tue, 02.12.14 23:35, WaLyong Cho (walyong@samsung.com) wrote: Supported timer options --on-active=, --on-boot=, --on-startup=, --on-unit-active=, --on-unit-inactive=, --on-calendar=. Each options corresponding with OnActiveSec=, OnBootSec=, OnStartupSec=, OnUnitActiveSec=,

Re: [systemd-devel] Systemd-networkd DHCP Server DNS integration?

2014-12-03 Thread Lennart Poettering
On Tue, 18.11.14 12:39, Tom Gundersen (t...@jklm.no) wrote: On Tue, Nov 18, 2014 at 3:30 AM, William Wilhelm w...@wilhelm.com.au wrote: I'm building a router and have been experimenting with DHCPServer=yes for the LAN side of things. It's been working well. I ask if there is any

[systemd-devel] [PATCH] networkctl: fix typo

2014-12-03 Thread Torstein Husebø
--- src/network/networkctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 622533053c..a763630061 100644 --- a/src/network/networkctl.c +++ b/src/network/networkctl.c @@ -333,7 +333,7 @@ static int

Re: [systemd-devel] [HEADSUP] Next systemd Hackfest takes place at FOSDEM 2015, January 30th, Brussels!

2014-12-03 Thread Karol Lewandowski
On 2014-12-03 19:28, Lennart Poettering wrote: Heya, Harald organized a room for our next Hackfest now, on January 30th, 2015, one day before FOSDEM 2015 in Brussels, Belgium. For details please see: https://plus.google.com/events/c56kbn26s6g01n6m4tj2nmdgnfc If you intend to show up it

[systemd-devel] [PATCH V2] networkd: fix typo

2014-12-03 Thread Torstein Husebø
V2: found another one --- src/network/networkctl.c | 4 ++-- src/network/networkd-netdev.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/network/networkctl.c b/src/network/networkctl.c index 622533053c..a763630061 100644 --- a/src/network/networkctl.c +++

Re: [systemd-devel] [PATCH V2] networkd: fix typo

2014-12-03 Thread Tom Gundersen
Applied. Takk! Tom On Wed, Dec 3, 2014 at 8:59 PM, Torstein Husebø torst...@huseboe.net wrote: V2: found another one --- src/network/networkctl.c | 4 ++-- src/network/networkd-netdev.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/network/networkctl.c

[systemd-devel] [PATCH 1/2] libsystemd: add sd-hwdb library

2014-12-03 Thread Tom Gundersen
This is libudev-hwdb, but decoupled from libudev and in the libsystemd style. The core code is unchanged, apart from the following minor changes: - hwdb.bin located in /**/systemd/hwdb/ take preference over the ones located in /**/udev/ - properties are stored internally in an

[systemd-devel] [PATCH 2/2] libudev: make libudev-hwdb a wrapper around sd-hwdb

2014-12-03 Thread Tom Gundersen
--- Makefile.am| 3 +- src/libudev/libudev-hwdb-def.h | 74 -- src/libudev/libudev-hwdb.c | 327 - src/udev/udevadm-hwdb.c| 2 +- 4 files changed, 29 insertions(+), 377 deletions(-) delete mode 100644

Re: [systemd-devel] set rr scheduler failed with cpushares

2014-12-03 Thread Umut Tezduyar Lindskog
Hi, On Tue, Dec 2, 2014 at 7:12 PM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 17.11.14 23:46, WaLyong Cho (walyong@samsung.com) wrote: Hello, I'd made two different services. One has *CPUSchedulingPolicy=rr* and the others has *CPUShares=*. Could anyone help me? If

Re: [systemd-devel] [PATCH 1/2] libsystemd: add sd-hwdb library

2014-12-03 Thread Greg KH
On Wed, Dec 03, 2014 at 10:11:40PM +0100, Tom Gundersen wrote: This is libudev-hwdb, but decoupled from libudev and in the libsystemd style. The core code is unchanged, apart from the following minor changes: - hwdb.bin located in /**/systemd/hwdb/ take preference over the ones located

Re: [systemd-devel] [BUG] too many rfkill services

2014-12-03 Thread Chris Atkinson
I had the same issue with rfkill as Łukasz did. I have rebuilt including commit 4844262f25a3ff6bd23de05a0a6f84a8e2983d74. I tested by cycling suspend/resume 15 times without reboot, and did not experience any failed phantom rfkill services. I also tested rfkill functionality, and the state of a

Re: [systemd-devel] [HEADSUP] Next systemd Hackfest takes place at FOSDEM 2015, January 30th, Brussels!

2014-12-03 Thread Lennart Poettering
On Wed, 03.12.14 20:47, Karol Lewandowski (k.lewando...@samsung.com) wrote: On 2014-12-03 19:28, Lennart Poettering wrote: Heya, Harald organized a room for our next Hackfest now, on January 30th, 2015, one day before FOSDEM 2015 in Brussels, Belgium. For details please see:

Re: [systemd-devel] [PATCH 1/2] libsystemd: add sd-hwdb library

2014-12-03 Thread Tom Gundersen
On Wed, Dec 3, 2014 at 10:19 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 03, 2014 at 10:11:40PM +0100, Tom Gundersen wrote: This is libudev-hwdb, but decoupled from libudev and in the libsystemd style. The core code is unchanged, apart from the following minor changes: -

Re: [systemd-devel] [PATCH 1/2] libsystemd: add sd-hwdb library

2014-12-03 Thread Lennart Poettering
On Thu, 04.12.14 00:57, Tom Gundersen (t...@jklm.no) wrote: On Wed, Dec 3, 2014 at 10:19 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 03, 2014 at 10:11:40PM +0100, Tom Gundersen wrote: This is libudev-hwdb, but decoupled from libudev and in the libsystemd style. The core

Re: [systemd-devel] set rr scheduler failed with cpushares

2014-12-03 Thread Lennart Poettering
On Wed, 03.12.14 22:13, Umut Tezduyar Lindskog (u...@tezduyar.com) wrote: Hi, On Tue, Dec 2, 2014 at 7:12 PM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 17.11.14 23:46, WaLyong Cho (walyong@samsung.com) wrote: Hello, I'd made two different services. One has

Re: [systemd-devel] [PATCH 1/2] libsystemd: add sd-hwdb library

2014-12-03 Thread Greg KH
On Thu, Dec 04, 2014 at 12:57:53AM +0100, Tom Gundersen wrote: On Wed, Dec 3, 2014 at 10:19 PM, Greg KH gre...@linuxfoundation.org wrote: On Wed, Dec 03, 2014 at 10:11:40PM +0100, Tom Gundersen wrote: This is libudev-hwdb, but decoupled from libudev and in the libsystemd style. The

Re: [systemd-devel] [PATCH v2 2/2] bootchart: escape non printable process name

2014-12-03 Thread Lennart Poettering
On Wed, 12.11.14 19:49, WaLyong Cho (walyong@samsung.com) wrote: Applied both. Made some changes regarding UTF8 escaping, see other mail. --- src/bootchart/svg.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/bootchart/svg.c b/src/bootchart/svg.c

Re: [systemd-devel] [PATCH v2 1/2] utf8: intruduce utf8_escape_non_printable

2014-12-03 Thread Lennart Poettering
On Wed, 19.11.14 12:35, David Herrmann (dh.herrm...@gmail.com) wrote: +} else { +if ((*str ' ') || (*str = 127)) { +*(s++) = '\\'; +*(s++) = 'x'; +

Re: [systemd-devel] [PATCH] units: skip mounting /dev/hugepages if we don't have CAP_SYS_ADMIN

2014-12-03 Thread Lennart Poettering
On Wed, 12.11.14 15:19, Michal Sekletar (msekl...@redhat.com) wrote: Applied! Thanks! --- units/dev-hugepages.mount | 1 + 1 file changed, 1 insertion(+) diff --git a/units/dev-hugepages.mount b/units/dev-hugepages.mount index d711fae..882adb4 100644 --- a/units/dev-hugepages.mount +++

Re: [systemd-devel] [PATCH 1/3] log: 1237557 Unchecked return value from library

2014-12-03 Thread Lennart Poettering
On Mon, 17.11.14 10:58, David Herrmann (dh.herrm...@gmail.com) wrote: Hi On Tue, Nov 11, 2014 at 9:06 AM, Susant Sahani sus...@redhat.com wrote: fix 1237557 Unchecked return value from library --- src/shared/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [systemd-devel] [PATCH] daemon-reload timestamped: coalesce redundant daemon-reloads

2014-12-03 Thread Tom Gundersen
On 2 Dec 2014 22:19, Ken Sedgwick ksedg...@bonsai.com wrote: Systems with many units (~10K) take many seconds to perform a daemon-reload. The process of load-balancing these systems requires multiple daemon-reloads, many issued concurrently. Out of curiosity, how does this work? Is there

Re: [systemd-devel] systemd-networkd DHCPv6 Prefix Delegation

2014-12-03 Thread Tom Gundersen
Patrik, do you have any plans for this? I agree, this is likely something we want. Tom On 30 Nov 2014 07:24, Anthony Messina amess...@messinet.com wrote: Does systemd-networkd provide the capability to request prefix delegation via DHCPv6? I haven't been able to find any information on this

Re: [systemd-devel] systemd.netdev: Tunnel should support ANY addresses for Local option

2014-12-03 Thread Tom Gundersen
Yes, this makes sense, added to my todo. On 24 Nov 2014 20:38, William Kennington will...@wkennington.com wrote: Currently, networkd netdevs do not support tunnel devices which do not have a local address configured. This breaks the configuration of sit devices on my hosts which run dhcp for

Re: [systemd-devel] networkd: Support setting mtu / mac address by interface name

2014-12-03 Thread Tom Gundersen
Yes, we could support a [Link] section in .network files applying such settings per network. Though that this should really be about overriding the link specific settings, so not sure it fits your usecase precisely... On 24 Nov 2014 20:46, William Kennington will...@wkennington.com wrote: I'd

Re: [systemd-devel] [PATCH] daemon-reload timestamped: coalesce redundant daemon-reloads

2014-12-03 Thread Lennart Poettering
On Tue, 02.12.14 13:19, Ken Sedgwick (ksedg...@bonsai.com) wrote: Systems with many units (~10K) take many seconds to perform a daemon-reload. The process of load-balancing these systems requires multiple daemon-reloads, many issued concurrently. Currently many of these redundant

Re: [systemd-devel] how to properly control the daemons or run advanced cmds

2014-12-03 Thread Lennart Poettering
On Tue, 02.12.14 10:30, Flavio Leitner (f...@redhat.com) wrote: Sort of. This special restart is only need on few cases when hot-upgrading, otherwise users expect full restart which is already accomplished by the current service unit. It seems to me that the solution is a mix of making two

Re: [systemd-devel] networkd: Support setting mtu / mac address by interface name

2014-12-03 Thread Lennart Poettering
On Mon, 24.11.14 11:46, William Kennington (will...@wkennington.com) wrote: I'd like to be able to set the MAC Address and MTU of interfaces, with just the interface name alone. The current method for matching links seems to be heavily tied to udev ATTRs and I understand given the nature of

[systemd-devel] [PATCH] unit: ignore generated systemd-bootchart.service

2014-12-03 Thread WaLyong Cho
--- units/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/units/.gitignore b/units/.gitignore index e12d299..3613cee 100644 --- a/units/.gitignore +++ b/units/.gitignore @@ -21,6 +21,7 @@ /systemd-ask-password-wall.service /systemd-backlight@.service /systemd-binfmt.service

Re: [systemd-devel] [PATCH v4 1/4] bus: StartTransientUnit can have aux unit

2014-12-03 Thread WaLyong Cho
On 12/04/2014 03:00 AM, Lennart Poettering wrote: On Tue, 02.12.14 23:29, WaLyong Cho (walyong@samsung.com) wrote: --- src/core/dbus-manager.c | 123 +--- 1 file changed, 105 insertions(+), 18 deletions(-) diff --git