Re: [systemd-devel] [RFC] activate on DBus signal

2015-03-23 Thread Cameron Norman
On Mon, Mar 23, 2015 at 1:54 AM, WaLyong Cho wrote: > Hi, > > Now, I'm looking for a method to a service be activated on special DBus > signal. If a process is running for waiting some of DBus signal this can > be useful. Obviously you want to use systemd, but you may want look at prior art in Up

Re: [systemd-devel] [PATCH] timedated: add LocalTimeUSec via dbus

2015-03-23 Thread Shawn Landden
On Mon, Mar 23, 2015 at 6:52 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Mon, Mar 23, 2015 at 04:24:38AM -0700, Shawn Landden wrote: >> --- >> src/timedate/timedated.c | 24 >> 1 file changed, 24 insertions(+) >> >> diff --git a/src/timedate/timedated.c b/src/timedate/tim

Re: [systemd-devel] [PATCH] bootchart: more useful error message for common error

2015-03-23 Thread Zbigniew Jędrzejewski-Szmek
> if (schedstat == -1) { > -log_error_errno(errno, "Failed to open > /proc/schedstat: %m"); > +log_error_errno(errno, "Failed to open > /proc/schedstat (requires CONFIG_SCHEDSTATS=y in kernel config): %m"); Yeah, this comes up quit

Re: [systemd-devel] [PATCH] po: update Russian translation

2015-03-23 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Mar 22, 2015 at 10:00:13PM +0300, Sergey Ptashnick wrote: > Add strings for importd, following 587fec427c. Applied. Zbyszek ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-d

Re: [systemd-devel] [PATCH] bootchart: remove duplicated code, prevent creating empty files

2015-03-23 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Mar 23, 2015 at 03:48:41AM -0700, Shawn Landden wrote: > In Debian and rawhide Fedora, which have CONFIG_SCHEDSTATS=n, > bootchart creates empty files in /run/log before printing an error. > Stop doing that. > > Moreover this duplicated part of the code doesn't even have error checking > s

Re: [systemd-devel] [PATCH 1/2] fstab-generator: Support root on tmpfs (or other deviceless FS)

2015-03-23 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Mar 24, 2015 at 12:52:59AM +0100, Tobias Hunger wrote: > This allows for stateless systems. > --- > src/fstab-generator/fstab-generator.c | 21 + > src/shared/util.c | 30 ++ > src/shared/util.h | 1 +

Re: [systemd-devel] [PATCH 2/2] fstab-generator: Do not check deviceless filesystems

2015-03-23 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Mar 24, 2015 at 12:53:00AM +0100, Tobias Hunger wrote: > There is no need to check those. > --- > src/shared/generator.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/src/shared/generator.c b/src/shared/generator.c > index 569b25b..c348ca2 100644 > --- a/src/shared/generat

Re: [systemd-devel] [PATCH] timedated: add LocalTimeUSec via dbus

2015-03-23 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Mar 23, 2015 at 04:24:38AM -0700, Shawn Landden wrote: > --- > src/timedate/timedated.c | 24 > 1 file changed, 24 insertions(+) > > diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c > index ca771d5..f83b99c 100644 > --- a/src/timedate/timedated.c >

[systemd-devel] possible to detect journald rate limiting?

2015-03-23 Thread Chris Morgan
Hello. I have a journal test that fails periodically. When observing the test with journalctl -f in the cases that fail I don't see any journal entries from the journalctl -f. I'm wondering if I'm hitting rate limiting here on F21 (systemd 216). Is there some way to detect at the application that

[systemd-devel] [PATCH 1/2] fstab-generator: Support root on tmpfs (or other deviceless FS)

2015-03-23 Thread Tobias Hunger
This allows for stateless systems. --- src/fstab-generator/fstab-generator.c | 21 + src/shared/util.c | 30 ++ src/shared/util.h | 1 + 3 files changed, 44 insertions(+), 8 deletions(-) diff --git a/src/fsta

[systemd-devel] [PATCH 2/2] fstab-generator: Do not check deviceless filesystems

2015-03-23 Thread Tobias Hunger
There is no need to check those. --- src/shared/generator.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/shared/generator.c b/src/shared/generator.c index 569b25b..c348ca2 100644 --- a/src/shared/generator.c +++ b/src/shared/generator.c @@ -42,6 +42,11 @@ int generator_write_fsck_d

[systemd-devel] [PATCH 0/2] support stateless systems on real hardware

2015-03-23 Thread Tobias Hunger
This patch set does add support for stateless systems on real hardware to the fstab-generator. To do so deviceless filesystems (tmpfs) need to be supported. At this time those get skipped. The first patch enables this in fstab-generator. The list of deviceless filesystems is taken from /proc/files

Re: [systemd-devel] RTNETLINK support for tuntap devices in systemd-networkd

2015-03-23 Thread Tom Gundersen
Hi Louis, On Sun, Mar 22, 2015 at 3:02 PM, Louis Feuvrier wrote: > I have been watching the recording[1] of Tom Gundersen's talk at > FOSDEM15 and around 13:45 he talks about integrating RTNETLINK support > for tuntap devices. I wanted to know if this feature is still of > interest to you guys wo

Re: [systemd-devel] [PATCH] libsystemd doesn't handle properly empty messages from kernel

2015-03-23 Thread Tom Gundersen
Hi Alin, Thanks for the fix! I made some changes to it, but kept the commit message and authorship as the idea is unchanged. Please take a look that this still solves your problem. Cheers, Tom On Wed, Mar 18, 2015 at 1:06 PM, Alin Rauta wrote: > Hi, > > Systemd strips out NLMSG_DONE piece fr

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Shawn Landden
On Mon, Mar 23, 2015 at 12:13 PM, Stef Walter wrote: > Sorry about the encrypted email ... I hit the wrong button. > > On 23.03.2015 19:07, Shawn Landden wrote: >> On Mon, Mar 23, 2015 at 8:56 AM, Kay Sievers wrote: >>> On Mon, Mar 23, 2015 at 3:49 PM, Stef Walter wrote: On 23.03.2015 15:26

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Stef Walter
Sorry about the encrypted email ... I hit the wrong button. On 23.03.2015 19:07, Shawn Landden wrote: > On Mon, Mar 23, 2015 at 8:56 AM, Kay Sievers wrote: >> On Mon, Mar 23, 2015 at 3:49 PM, Stef Walter wrote: >>> On 23.03.2015 15:26, Kay Sievers wrote: On Mon, Mar 23, 2015 at 1:46 PM, Dav

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread David Herrmann
Hi 2015-03-23 19:42 GMT+01:00 Stef Walter : > -BEGIN PGP MESSAGE- > Version: GnuPG v2 > > hQIOA/Dzx7eUN7W0EAgAgOsjwL/aEhn5prcOPnPCWCVcmINma17E5K4ysdpJP3vB > wuIF/L/0b1uhoDUgF1oiK9YwEpJyY1BSFt4HmaVnLw38cNL04u/WY+PUFsT0G0rV > 3fu7dl1Mxnjab63ncg4aPVrhYVqGbaCohbAjbmmgGX9Ty/Ey3shItWW6oGm3qbwJ >

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Stef Walter
binezjvUkOBeJ.bin Description: PGP/MIME version identification encrypted.asc Description: OpenPGP encrypted message ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Shawn Landden
On Mon, Mar 23, 2015 at 8:56 AM, Kay Sievers wrote: > On Mon, Mar 23, 2015 at 3:49 PM, Stef Walter wrote: >> On 23.03.2015 15:26, Kay Sievers wrote: >>> On Mon, Mar 23, 2015 at 1:46 PM, David Herrmann >>> wrote: Hi On Mon, Mar 23, 2015 at 6:32 AM, Lennart Poettering wrote:

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Kay Sievers
On Mon, Mar 23, 2015 at 4:56 PM, Kay Sievers wrote: > On Mon, Mar 23, 2015 at 3:49 PM, Stef Walter wrote: >> It seems that timedatectl itself needs information about remote local >> time, since when connecting remotely over DBus it gets the local time >> wrong. [1] > > Yeah, it's currently a mix

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Kay Sievers
On Mon, Mar 23, 2015 at 3:49 PM, Stef Walter wrote: > On 23.03.2015 15:26, Kay Sievers wrote: >> On Mon, Mar 23, 2015 at 1:46 PM, David Herrmann >> wrote: >>> Hi >>> >>> On Mon, Mar 23, 2015 at 6:32 AM, Lennart Poettering >>> wrote: On Thu, 19.03.15 14:39, David Herrmann (dh.herrm...@gmail

Re: [systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

2015-03-23 Thread Ivan Shapovalov
On 2015-03-23 at 13:45 +, Zbigniew Jędrzejewski-Szmek wrote: > On Mon, Mar 23, 2015 at 04:04:28PM +0300, Ivan Shapovalov wrote: > > Hello, > > > > is it possible/allowed/desired to support assigning ExecStartPre= and > > similar options via dbus interface, i. e. in `systemctl set-property` or

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Stef Walter
On 23.03.2015 15:26, Kay Sievers wrote: > On Mon, Mar 23, 2015 at 1:46 PM, David Herrmann wrote: >> Hi >> >> On Mon, Mar 23, 2015 at 6:32 AM, Lennart Poettering >> wrote: >>> On Thu, 19.03.15 14:39, David Herrmann (dh.herrm...@gmail.com) wrote: >>> Hmm, so this is a convenience call. You cou

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Kay Sievers
On Mon, Mar 23, 2015 at 1:46 PM, David Herrmann wrote: > Hi > > On Mon, Mar 23, 2015 at 6:32 AM, Lennart Poettering > wrote: >> On Thu, 19.03.15 14:39, David Herrmann (dh.herrm...@gmail.com) wrote: >> >>> Hmm, so this is a convenience call. You could just set tm.tm_zone >>> locally and use mktime

Re: [systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

2015-03-23 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Mar 23, 2015 at 04:04:28PM +0300, Ivan Shapovalov wrote: > Hello, > > is it possible/allowed/desired to support assigning ExecStartPre= and > similar options via dbus interface, i. e. in `systemctl set-property` or > `systemd-run -p`? > > I'm hitting a usecase when I need to run a service

Re: [systemd-devel] [PATCH] Create journal-remote.conf.xml to document the format of the configuration file for systemd-journal-remote

2015-03-23 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Mar 23, 2015 at 08:31:51AM -0400, Chris Morgan wrote: > On Sun, Mar 22, 2015 at 9:49 PM, Zbigniew Jędrzejewski-Szmek > wrote: > > Applied. > > > > What Michael wrote about: there should be a conditional='HAVE_MICROHTTPD' > > attribute, to make this man page conditional on the same build op

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Vasiliy Tolstov
2015-03-23 15:53 GMT+03:00 Zbigniew Jędrzejewski-Szmek : > OK, I guess that this is good enough. > > So we should have something like fstype_is_deviceless (fstype_has_no_device?) > like fstype_is_network(). > Looks good. -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru jabber: v...@selfip.ru ___

[systemd-devel] Supporting ExecStartPre= and friends in `systemctl set-property` or `systemd-run -p`

2015-03-23 Thread Ivan Shapovalov
Hello, is it possible/allowed/desired to support assigning ExecStartPre= and similar options via dbus interface, i. e. in `systemctl set-property` or `systemd-run -p`? I'm hitting a usecase when I need to run a service with multiple executed processes via `systemd-run`. I think this makes sense t

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Mar 23, 2015 at 01:45:06PM +0300, Vasiliy Tolstov wrote: > 2015-03-23 13:39 GMT+03:00 Tobias Hunger : > > Hi Vasiliy, > > > > from what I read lowerdir, upperdir and workdir need to be > > directories, not devices. So how can you mount those three directories > > before setting up an overla

Re: [systemd-devel] systemd-networkd 219 chokes on can device

2015-03-23 Thread Tom Gundersen
On Thu, Mar 5, 2015 at 2:03 PM, Mads wrote: >>> I have an Atom NM10-based industrial PC with three e1000e devices and a >>> PEAK can device (PCI ID 001c:0008). After updating from 216 to 219, >>> systemd-networkd is unable to get my e1000e-devices up and running. I don't >>> have any configuration

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread David Herrmann
Hi On Mon, Mar 23, 2015 at 6:32 AM, Lennart Poettering wrote: > On Thu, 19.03.15 14:39, David Herrmann (dh.herrm...@gmail.com) wrote: > >> Hmm, so this is a convenience call. You could just set tm.tm_zone >> locally and use mktime() with the value retrieved by "Timezone"? Yeah, >> the time-api is

Re: [systemd-devel] [PATCH] Create journal-remote.conf.xml to document the format of the configuration file for systemd-journal-remote

2015-03-23 Thread Chris Morgan
On Sun, Mar 22, 2015 at 9:49 PM, Zbigniew Jędrzejewski-Szmek wrote: > Applied. > > What Michael wrote about: there should be a conditional='HAVE_MICROHTTPD' > attribute, to make this man page conditional on the same build option > as systemd-journal-remote itself. I added that. > > Zbyszek > Yep

[systemd-devel] [PATCH] timedatectl: fix when queried system has differn't timezone

2015-03-23 Thread Shawn Landden
Also allow getting time from time(2) when BUS_TRANSPORT_MACHINE. v2: check for error --- src/timedate/timedatectl.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index 9e04f8f..44d329e 100644 --- a/src/timed

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Shawn Landden
On Mon, Mar 23, 2015 at 4:42 AM, Stef Walter wrote: > On 23.03.2015 12:11, Shawn Landden wrote: >> On Sun, Mar 22, 2015 at 10:32 PM, Lennart Poettering >> wrote: >>> On Thu, 19.03.15 14:39, David Herrmann (dh.herrm...@gmail.com) wrote: >>> Hmm, so this is a convenience call. You could just s

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Stef Walter
On 23.03.2015 12:11, Shawn Landden wrote: > On Sun, Mar 22, 2015 at 10:32 PM, Lennart Poettering > wrote: >> On Thu, 19.03.15 14:39, David Herrmann (dh.herrm...@gmail.com) wrote: >> >>> Hmm, so this is a convenience call. You could just set tm.tm_zone >>> locally and use mktime() with the value re

[systemd-devel] [PATCH] timedatectl: fix when queried system has differn't timezone

2015-03-23 Thread Shawn Landden
Also allow getting time from time(2) when BUS_TRANSPORT_MACHINE. --- src/timedate/timedatectl.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index 9e04f8f..7c9bd11 100644 --- a/src/timedate/timedatectl.c +++ b/sr

[systemd-devel] [PATCH] timedated: add LocalTimeUSec via dbus

2015-03-23 Thread Shawn Landden
--- src/timedate/timedated.c | 24 1 file changed, 24 insertions(+) diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index ca771d5..f83b99c 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -38,6 +38,7 @@ #include "bus-common-errors.

Re: [systemd-devel] [PATCH] timedated: Add a LocalOffset property for timezone offset

2015-03-23 Thread Shawn Landden
On Sun, Mar 22, 2015 at 10:32 PM, Lennart Poettering wrote: > On Thu, 19.03.15 14:39, David Herrmann (dh.herrm...@gmail.com) wrote: > >> Hmm, so this is a convenience call. You could just set tm.tm_zone >> locally and use mktime() with the value retrieved by "Timezone"? Yeah, >> the time-api is aw

[systemd-devel] [PATCH] bootchart: more useful error message for common error

2015-03-23 Thread Shawn Landden
Reported-by: tfirg_ on IRC Signed-off-by: Shawn Landden --- src/bootchart/store.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootchart/store.c b/src/bootchart/store.c index 607cc5e..dfa681f 100644 --- a/src/bootchart/store.c +++ b/src/bootchart/store.c @@ -176,7 +176,

[systemd-devel] [PATCH] bootchart: remove duplicated code, prevent creating empty files

2015-03-23 Thread Shawn Landden
In Debian and rawhide Fedora, which have CONFIG_SCHEDSTATS=n, bootchart creates empty files in /run/log before printing an error. Stop doing that. Moreover this duplicated part of the code doesn't even have error checking so there is no error avoided by doing this early. Reported-by: tfirg_ on IR

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Vasiliy Tolstov
2015-03-23 13:39 GMT+03:00 Tobias Hunger : > Hi Vasiliy, > > from what I read lowerdir, upperdir and workdir need to be > directories, not devices. So how can you mount those three directories > before setting up an overlayfs using them? > > That should be possible with a couple of units injected i

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Tobias Hunger
Hi Vasiliy, from what I read lowerdir, upperdir and workdir need to be directories, not devices. So how can you mount those three directories before setting up an overlayfs using them? That should be possible with a couple of units injected into the initrd, but to me this seems more than what the

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Vasiliy Tolstov
2015-03-23 13:02 GMT+03:00 Tobias Hunger : > I never used overlayfs myself, can you set up an overlayfs via the > kernel commandline arguments supported by the fstab-generator? Those > are device, options and fstype for the root and usr. > > If a overlayfs setup can not be shoehorned into the (two

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Tobias Hunger
Hi Vasiliy, I never used overlayfs myself, can you set up an overlayfs via the kernel commandline arguments supported by the fstab-generator? Those are device, options and fstype for the root and usr. If a overlayfs setup can not be shoehorned into the (two times) three flags we have support for

[systemd-devel] [RFC] activate on DBus signal

2015-03-23 Thread WaLyong Cho
Hi, Now, I'm looking for a method to a service be activated on special DBus signal. If a process is running for waiting some of DBus signal this can be useful. I already told with Simon in DBus mailing list. see this thread: http://lists.freedesktop.org/archives/dbus/2015-March/016607.html Simo

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Vasiliy Tolstov
2015-03-23 11:21 GMT+03:00 Tobias Hunger : > > I had been thinking about adding more device-less fs types, too, and > came to the same conclusion:-) > > I'll rework the patch with the new else, use streq_ptr and alse rename > type_is_tmpfs to fstype_is_tmpfs. I think that is cleaner. I'll send > it

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Tobias Hunger
Hi Zbyszek, I had been thinking about adding more device-less fs types, too, and came to the same conclusion:-) I'll rework the patch with the new else, use streq_ptr and alse rename type_is_tmpfs to fstype_is_tmpfs. I think that is cleaner. I'll send it as soon as I get round to it. Thanks for

Re: [systemd-devel] [PATCH 1/2] rules: storage - whitelist partitioned MS & MMC devices

2015-03-23 Thread Mantas Mikulėnas
On Tue, Mar 17, 2015 at 11:50 PM, Kay Sievers wrote: > On Tue, Mar 17, 2015 at 5:00 PM, Mantas Mikulėnas > wrote: > > Accidentally dropped in 1aff20687f4868575. > > --- > > rules/60-persistent-storage.rules | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > +KERNEL!="loop*|mmcblk[0