Re: [systemd-devel] [PATCH] Pass environment over daemon-reexec

2013-02-07 Thread Oleksii Shevchuk
> and it doesn't seem to do anything :( Ah, and I miss something. If you are NOT testing it in your working instance, you should patch main.c to reexec that one, that you are testing. Because binary for reexec hardcoded to main.c as for now. So you can just get default systemd after reexec, that k

Re: [systemd-devel] [PATCH] Pass environment over daemon-reexec

2013-02-07 Thread Oleksii Shevchuk
> and it doesn't seem to do anything :( If you running it in your working instance, you should reexec twice, to get that systemd, that serializes env to next. > Now, I wonder if nelines in env vars is actually OK or not. Yes, I thought about it too. As for now, there is not proper support for \

Re: [systemd-devel] Feature request: schedule jobs for last day of month

2013-02-07 Thread David Strauss
On Thu, Feb 7, 2013 at 8:11 PM, Lennart Poettering wrote: > We are very conservative in adding new deps to PID 1. PID 1 is an almost > kernel-like environment, if it goes down the entire system is > lost. Pulling in another library into this, that so far has not been > part of the usual Linux stac

Re: [systemd-devel] Feature request: randomly delay scheduled jobs

2013-02-07 Thread Lennart Poettering
On Wed, 06.02.13 10:13, Olav Vitters (o...@vitters.nl) wrote: > Feature request: allow to randomly delay a scheduled job > > Why: > I have various cron jobs that run every 20min on various VMs + servers. > All servers are synched with NTP. What happens is that if they use some > shared resource (

Re: [systemd-devel] [Patch] NumLock setting from vconsole.conf

2013-02-07 Thread Lennart Poettering
On Wed, 06.02.13 16:36, Kay Sievers (k...@vrfy.org) wrote: > > On Wed, Feb 6, 2013 at 4:03 PM, David Herrmann > wrote: > > > I actually don't care that much whether this option gets introduced or > > not. The race-condition is pretty hard to trigger and even if you > > trigger it, it doesn't ca

Re: [systemd-devel] Feature request: schedule jobs for last day of month

2013-02-07 Thread Lennart Poettering
On Tue, 05.02.13 11:54, David Strauss (da...@davidstrauss.net) wrote: > > Repeating myself, but I'll say it again: I strongly prefer a feature > set that is a subset of iCal/xCal [1]. I'd like it to be possible in > the future to expose existing and future runs via CalDAV over > something like th

Re: [systemd-devel] Feature request: schedule jobs for last day of month

2013-02-07 Thread Lennart Poettering
On Tue, 05.02.13 12:42, Dave (d...@flex.com.au) wrote: > > In the year 2013, of the month of February, on the 4th day, Larry Baker > wrote: > > What about "2012-02~4" (leave off the "-")? Thus, "-" implies day (days > > from the start) of the month, "~" implies days from the end of the month.

Re: [systemd-devel] systemd should not call KDSKBMODE on a VT with X

2013-02-07 Thread Kay Sievers
On Fri, Feb 8, 2013 at 3:31 AM, Jan Engelhardt wrote: > On Friday 2013-02-08 02:59, Lennart Poettering wrote: > >>On Wed, 06.02.13 01:04, Jan Engelhardt (jeng...@inai.de) wrote: >> >>> >>> On Tuesday 2013-02-05 01:36, Kay Sievers wrote: >>> >>> >On Sat, Feb 2, 2013 at 11:17 PM, Arthur Taylor wrot

Re: [systemd-devel] systemd should not call KDSKBMODE on a VT with X

2013-02-07 Thread Jan Engelhardt
On Friday 2013-02-08 02:59, Lennart Poettering wrote: >On Wed, 06.02.13 01:04, Jan Engelhardt (jeng...@inai.de) wrote: > >> >> On Tuesday 2013-02-05 01:36, Kay Sievers wrote: >> >> >On Sat, Feb 2, 2013 at 11:17 PM, Arthur Taylor wrote: >> > >> >> KDSKBMODE is a virtual console ioctl which chang

Re: [systemd-devel] [PATCH] Pass environment over daemon-reexec

2013-02-07 Thread Zbigniew Jędrzejewski-Szmek
On Fri, Feb 08, 2013 at 01:36:26AM +0100, Lennart Poettering wrote: > On Thu, 07.02.13 00:40, Oleksii Shevchuk (alx...@gmail.com) wrote: > > > Fixes this bug: > > alxchk > systemctl --user set-environment A=B > > alxchk > systemctl --user show-environment | grep ^A= > > A=B > > alxchk > systemctl

Re: [systemd-devel] systemd should not call KDSKBMODE on a VT with X

2013-02-07 Thread Lennart Poettering
On Wed, 06.02.13 01:04, Jan Engelhardt (jeng...@inai.de) wrote: > > On Tuesday 2013-02-05 01:36, Kay Sievers wrote: > > >On Sat, Feb 2, 2013 at 11:17 PM, Arthur Taylor wrote: > > > >> KDSKBMODE is a virtual console ioctl which changes the current "mode" > >> of the virtual console keyboard for

Re: [systemd-devel] questions about systemd-nspawn

2013-02-07 Thread Lennart Poettering
On Tue, 05.02.13 12:34, Jake Edge (j...@lwn.net) wrote: > Howdy Lennart and the systemd gang, Heya, I figure all issues have been already answered in this thread or elsewhere, just let me add one more thing for the sake of the archives: > documented on the man page ... beyond that, I got a gazi

Re: [systemd-devel] Someone working on gui for multiseat?

2013-02-07 Thread Lennart Poettering
On Wed, 06.02.13 14:24, Stef Bon (stef...@gmail.com) wrote: > Ok, when logind sends out a message (after seat added or removed) it's > up to the services like gdm(?) what to do with it: use it as docking > station or to start a new session (eg a real seat) ( when it comes to > adding). No, udev c

Re: [systemd-devel] [PATCH] Pass environment over daemon-reexec

2013-02-07 Thread Lennart Poettering
On Thu, 07.02.13 00:40, Oleksii Shevchuk (alx...@gmail.com) wrote: > Fixes this bug: > alxchk > systemctl --user set-environment A=B > alxchk > systemctl --user show-environment | grep ^A= > A=B > alxchk > systemctl --user daemon-reexec > alxchk > systemctl --user show-environment | grep ^A= > alx

Re: [systemd-devel] [PATCH] util: *DO NOT* loop for EINTR handling with close_nointr()

2013-02-07 Thread Colin Walters
Any thoughts on this patch? It's mainly useful as a signpost for developers reading the systemd sources at the moment. If systemd ever gained threading, then it would be an actual issue. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.or

Re: [systemd-devel] build failures in latest master from d848b9cbfa0ba72381363accce481600169df2eb

2013-02-07 Thread Colin Walters
On Thu, 2013-02-07 at 14:38 +0100, Kay Sievers wrote: > I changed it now and people with the non-working --as-needed need to > check if that works for them ... The latest git builds for me (after one detail, see below) and I've switched gnome-ostree to tracking master again. Now, besides linking

Re: [systemd-devel] systemd-fsck change fsck arguments to "-a" -> "-y"

2013-02-07 Thread Lennart Poettering
On Thu, 07.02.13 16:57, Bryan Duff (bd...@ecessa.com) wrote: > Would it be possible to add this as some kind of option to systemd-fsck? > > In my case there was a situation where ext3 would not mount because > of a timestamp issue that would not be fixed with "-a". Every sane distro patches the

Re: [systemd-devel] python - reading the journal

2013-02-07 Thread David Strauss
Can we spend some time on IRC prepping the systemd patch? I'd like to get that rolling. On Wed, Feb 6, 2013 at 3:05 PM, Steven Hiscocks wrote: > On 06/02/13 00:55, Zbigniew Jędrzejewski-Szmek wrote: >> >> On Tue, Feb 05, 2013 at 11:45:10PM +, Steven Hiscocks wrote: >>> >>> On 05/02/13 23:00,

Re: [systemd-devel] [systemd-commits] src/test

2013-02-07 Thread Thomas H.P. Andersen
On Thu, Feb 7, 2013 at 10:30 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Feb 07, 2013 at 12:15:24PM -0800, Thomas H.P. Andersen wrote: >> src/test/test-env-replace.c | 135 >> +++- >> 1 file changed, 60 insertions(+), 75 deletions(-) >> >> New commit

Re: [systemd-devel] build failures in latest master from d848b9cbfa0ba72381363accce481600169df2eb

2013-02-07 Thread David Strauss
On Wed, Feb 6, 2013 at 10:32 PM, Zbigniew Jędrzejewski-Szmek wrote: > I now pushed a simple patch from David Strauss which adds an additional > dependency and fixes the build. This was not my patch. -- David Strauss | da...@davidstrauss.net | +1 512 577 5827 [mobile] _

[systemd-devel] systemd-fsck change fsck arguments to "-a" -> "-y"

2013-02-07 Thread Bryan Duff
Would it be possible to add this as some kind of option to systemd-fsck? In my case there was a situation where ext3 would not mount because of a timestamp issue that would not be fixed with "-a". Thanks. -Bryan diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index 058f34d..b1938c7 100644 ---

Re: [systemd-devel] build failures in latest master from d848b9cbfa0ba72381363accce481600169df2eb

2013-02-07 Thread Kay Sievers
On Thu, Feb 7, 2013 at 10:28 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Feb 07, 2013 at 02:38:26PM +0100, Kay Sievers wrote: >> On Thu, Feb 7, 2013 at 7:32 AM, Zbigniew Jędrzejewski-Szmek >> wrote: >> > On Tue, Feb 05, 2013 at 02:43:32PM +0100, Michael Biebl wrote: >> >> 2013/2/5 Colin Walt

Re: [systemd-devel] [systemd-commits] src/test

2013-02-07 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Feb 07, 2013 at 12:15:24PM -0800, Thomas H.P. Andersen wrote: > src/test/test-env-replace.c | 135 > +++- > 1 file changed, 60 insertions(+), 75 deletions(-) > > New commits: > commit 1f28b2deb4e118cd2d2a5138ccb4cc45841c136d > Author: Thomas Hindo

Re: [systemd-devel] build failures in latest master from d848b9cbfa0ba72381363accce481600169df2eb

2013-02-07 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Feb 07, 2013 at 02:38:26PM +0100, Kay Sievers wrote: > On Thu, Feb 7, 2013 at 7:32 AM, Zbigniew Jędrzejewski-Szmek > wrote: > > On Tue, Feb 05, 2013 at 02:43:32PM +0100, Michael Biebl wrote: > >> 2013/2/5 Colin Walters : > >> > On Tue, 2013-02-05 at 13:10 +0100, Kay Sievers wrote: > >> > >

[systemd-devel] [PATCH] [RFC] Optionaly save coredump to file

2013-02-07 Thread Oleksii Shevchuk
Abstract. Systemd/Journal provides convient interface to store all system events in one place. While this works in general, some cases are broken. The main problem is - once caught by journal message stays there till global rotation. So, using journal for saving cores has next side effect: serial o

Re: [systemd-devel] usb_id gets bogus serial and makes a mess

2013-02-07 Thread Robert Milasan
On Thu, 07 Feb 2013 16:32:55 -0300 "Cristian Rodríguez" wrote: > El 07/02/13 11:52, Robert Milasan escribió: > > Hi, seems that using some strange usb devices with really bogus > > serial numbers usb_id creates links with junk strings in it: > > > > > Could be added to usb_id and then use it to

Re: [systemd-devel] usb_id gets bogus serial and makes a mess

2013-02-07 Thread Cristian Rodríguez
El jue 07 feb 2013 16:32:55 CLST, Cristian Rodríguez escribió: El 07/02/13 11:52, Robert Milasan escribió: Hi, seems that using some strange usb devices with really bogus serial numbers usb_id creates links with junk strings in it: Could be added to usb_id and then use it to validated serial

Re: [systemd-devel] usb_id gets bogus serial and makes a mess

2013-02-07 Thread Cristian Rodríguez
El 07/02/13 11:52, Robert Milasan escribió: Hi, seems that using some strange usb devices with really bogus serial numbers usb_id creates links with junk strings in it: Could be added to usb_id and then use it to validated serial_str and serial. Something like this is IMHO better static b

Re: [systemd-devel] %s specifier

2013-02-07 Thread Kok, Auke-jan H
On Thu, Feb 7, 2013 at 7:13 AM, Zbigniew Jędrzejewski-Szmek wrote: > On Wed, Feb 06, 2013 at 04:30:40PM -0800, Kok, Auke-jan H wrote: >> On Wed, Feb 6, 2013 at 4:21 PM, Zbigniew Jędrzejewski-Szmek >> wrote: >> > current docs specify that %s means the shell of the user configured >> > with User= o

Re: [systemd-devel] network/openvswitch dependency loop/deadlock

2013-02-07 Thread Frederic Crozat
Le jeudi 07 février 2013 à 09:55 -0600, Ian Pilcher a écrit : > On 02/07/2013 06:13 AM, Colin Guthrie wrote: > > 'Twas brillig, and Ian Pilcher at 06/02/13 22:27 did gyre and gimble: > >> * systemd sees "Before=... network.target" in openvswitch.service and > >> waits for the network service to c

Re: [systemd-devel] network/openvswitch dependency loop/deadlock

2013-02-07 Thread Ian Pilcher
On 02/07/2013 06:13 AM, Colin Guthrie wrote: > 'Twas brillig, and Ian Pilcher at 06/02/13 22:27 did gyre and gimble: >> * systemd sees "Before=... network.target" in openvswitch.service and >> waits for the network service to complete -- which will never happen, >> because the network service i

Re: [systemd-devel] %s specifier

2013-02-07 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Feb 06, 2013 at 04:30:40PM -0800, Kok, Auke-jan H wrote: > On Wed, Feb 6, 2013 at 4:21 PM, Zbigniew Jędrzejewski-Szmek > wrote: > > current docs specify that %s means the shell of the user configured > > with User= or the user running systemd. However, it actually often > > returns /bin/sh

[systemd-devel] usb_id gets bogus serial and makes a mess

2013-02-07 Thread Robert Milasan
Hi, seems that using some strange usb devices with really bogus serial numbers usb_id creates links with junk strings in it: /dev/disk/by-id/usb-TSSTcorp_BDDVDW_SE-506AB_㡒䍌䜶䉗ぁㄴ㌴†ँ-0:0 Initially was believed that usb_id is to blame, then the kernel, but it turns out that really the usb cd/dvd driv

Re: [systemd-devel] When and why was write_cd_rules and 75-cd-aliases-generator.rules where dropped?

2013-02-07 Thread Robert Milasan
On Thu, 7 Feb 2013 15:16:46 +0100 "Tom Gundersen" wrote: > > I believe I was one of the people asking for /dev/dvd to be dropped. > > The weirdness you get with the original code is that if you have two > optical drives and one is a cdrom+dvdrom and the other is only a > cdrom, then depending o

Re: [systemd-devel] When and why was write_cd_rules and 75-cd-aliases-generator.rules where dropped?

2013-02-07 Thread Tom Gundersen
On Thu, Feb 7, 2013 at 2:33 PM, Kay Sievers wrote: > On Thu, Feb 7, 2013 at 2:20 PM, Robert Milasan wrote: >> On Thu, 7 Feb 2013 14:11:13 +0100 >> I still am on the idea the a base static rules for the >> primary cd/dvd driver should exists, don't think that those rules would >> screw something u

Re: [systemd-devel] build failures in latest master from d848b9cbfa0ba72381363accce481600169df2eb

2013-02-07 Thread Kay Sievers
On Thu, Feb 7, 2013 at 7:32 AM, Zbigniew Jędrzejewski-Szmek wrote: > On Tue, Feb 05, 2013 at 02:43:32PM +0100, Michael Biebl wrote: >> 2013/2/5 Colin Walters : >> > On Tue, 2013-02-05 at 13:10 +0100, Kay Sievers wrote: >> > >> >> We do not want to place shared libraries with private APIs in the >>

Re: [systemd-devel] When and why was write_cd_rules and 75-cd-aliases-generator.rules where dropped?

2013-02-07 Thread Kay Sievers
On Thu, Feb 7, 2013 at 2:20 PM, Robert Milasan wrote: > On Thu, 7 Feb 2013 14:11:13 +0100 > "Kay Sievers" wrote: >> People actually asked to remove /dev/dvd link we created in the >> initial code, to not make any promises anymore, and not make it look >> like multiple devices are supported: >>

Re: [systemd-devel] When and why was write_cd_rules and 75-cd-aliases-generator.rules where dropped?

2013-02-07 Thread Robert Milasan
On Thu, 7 Feb 2013 14:11:13 +0100 "Kay Sievers" wrote: > > Because these links make the most sense when we support multiple > drives, and as mentioned above, we don't want to support any kind of > stateful rules anymore. We just do the absolute minimum today, and > that is /dev/cdrom. > > Peopl

Re: [systemd-devel] When and why was write_cd_rules and 75-cd-aliases-generator.rules where dropped?

2013-02-07 Thread Kay Sievers
On Thu, Feb 7, 2013 at 1:46 PM, Robert Milasan wrote: > just notice that in newer version of systemd-udev (195) write_cd_rules > and 75-cd-aliases-generator.rules have been dropped. Can anybody give > me the commit for that (tried to find it, but didn't)? None of the "rule generator stuff" was

Re: [systemd-devel] mdadm raid on virtio disks

2013-02-07 Thread Kay Sievers
On Thu, Feb 7, 2013 at 1:43 PM, Alexey Shabalin wrote: > I test boot kvm VM with non-boot raid disks on virtio-blk. > For up raid i use upstream udev rule > http://git.neil.brown.name/git?p=mdadm.git;a=blob;f=udev-md-raid.rules > And raid can't start. Of course after manual start "mdadm --assemble

[systemd-devel] When and why was write_cd_rules and 75-cd-aliases-generator.rules where dropped?

2013-02-07 Thread Robert Milasan
Hi, just notice that in newer version of systemd-udev (195) write_cd_rules and 75-cd-aliases-generator.rules have been dropped. Can anybody give me the commit for that (tried to find it, but didn't)? Also shouldn't we add a default /dev/dvd, /dev/cdrom, /dev/cdrw, /dev/dvdrw for the primary cd/

[systemd-devel] mdadm raid on virtio disks

2013-02-07 Thread Alexey Shabalin
Hello! I test boot kvm VM with non-boot raid disks on virtio-blk. For up raid i use upstream udev rule http://git.neil.brown.name/git?p=mdadm.git;a=blob;f=udev-md-raid.rules And raid can't start. Of course after manual start "mdadm --assemble --scan" i can see raid /dev/md0. If change virtio-blk t

Re: [systemd-devel] network/openvswitch dependency loop/deadlock

2013-02-07 Thread Colin Guthrie
'Twas brillig, and Ian Pilcher at 06/02/13 22:27 did gyre and gimble: > Recently, Fedora shipped an update which starts the Open vSwitch service > on demand -- whenever an Open vSwitch bridge or port is "ifup'ed". In > theory, I should now be able to simply write traditional ifcfg-* files > for al

[systemd-devel] [PATCH] ignore comments in multiline variable definitions

2013-02-07 Thread Michal Vyskocil
Commented lines are ignored by default and are considered as end of a definition. If they ends on a backslash, they are just ignored and a next line is considered as a part of a definition. FOO=one \ two will be evaluated as FOO="one two", where FOO=one \ two will result in FOO="one" and two. -

Re: [systemd-devel] [PATCH 2/2] core: do not overwrite existing units source

2013-02-07 Thread Umut Tezduyar
Hi, It is because patch [1/2] of this patch set hasn't been committed. I have made the same patch independent of patch [1/2] and attached to this email thread. Thanks On Thu, Feb 7, 2013 at 6:12 AM, Zbigniew Jędrzejewski-Szmek < zbys...@in.waw.pl> wrote: > On Mon, Feb 04, 2013 at 03:01:23PM +0