Re: [systemd-devel] [Patch] build issues on ppc

2012-12-19 Thread Lukáš Nykrýn
Lennart Poettering píše v Út 18. 12. 2012 v 18:20 +0100: On Tue, 18.12.12 17:56, Lukáš Nykrýn (lnyk...@redhat.com) wrote: Hello, systemd-196 won't build on ppc https://bugzilla.redhat.com/show_bug.cgi?id=888255. I think that sufficient patch would be: diff --git a/Makefile.am

[systemd-devel] [PATCH] udevd: add missing : to getopt_long 'e'

2012-12-19 Thread Lukas Nykryn
Parameter -e is set without additional argument in getopt and this leads to segfault when calling 'systemd-udevd -e'. --- src/udev/udevd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev/udevd.c b/src/udev/udevd.c index ebd601e..ffc48a0 100644 --- a/src/udev/udevd.c

Re: [systemd-devel] [Patch] build issues on ppc

2012-12-19 Thread Lennart Poettering
On Wed, 19.12.12 11:13, Lukáš Nykrýn (lnyk...@redhat.com) wrote: Hmm, but libsystemd_core_la_LIBADD already pulls in libsystemd-daemon.la. So why pull the .c file in too? This doesn't look like the right fix to me. Sorry I overlooked it. But then I am not sure, why the build is failing.

Re: [systemd-devel] daemon migration tutorial

2012-12-19 Thread Lennart Poettering
On Fri, 14.12.12 12:15, Dennis Semakin (insan...@yandex.ru) wrote: Hello, I just want to ask you a question about daemon migration to systemd. I have daemon source code, I want to use it with systemd. Where can I find the information about this? Is there any centralized tutorial or

[systemd-devel] [PATCH] coredumpctl: check return of strndup

2012-12-19 Thread Lukas Nykryn
--- src/journal/coredumpctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c index f9cebb7..4f0ed58 100644 --- a/src/journal/coredumpctl.c +++ b/src/journal/coredumpctl.c @@ -262,7 +262,7 @@ static int retrieve(const void

Re: [systemd-devel] eudev fork and patches there

2012-12-19 Thread Lennart Poettering
On Mon, 17.12.12 12:17, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: Hi, eudev has made a project annoucement [1], and I thought it would be worthwhile to go through their patches and cherry-pick. I've now done that (until cc5c144a70fc37e 'Merge pull request #32') and the results

Re: [systemd-devel] [PATCH] coredumpctl: check return of strndup

2012-12-19 Thread Lennart Poettering
On Wed, 19.12.12 14:38, Lukas Nykryn (lnyk...@redhat.com) wrote: Applied! Thanks! --- src/journal/coredumpctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c index f9cebb7..4f0ed58 100644 ---

Re: [systemd-devel] After firmare

2012-12-19 Thread Lennart Poettering
On Wed, 12.12.12 15:57, John Tobias (john.tobias...@gmail.com) wrote: Hi All, I have a network.service (pls see below) for my wireless interface: [Unit] Description=Network [Service] Restart=on-failure ExecStart=/usr/sbin/wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf

Re: [systemd-devel] vmware-datarecovery+systemd.automount+EVC = crash

2012-12-19 Thread Lennart Poettering
On Fri, 14.12.12 06:04, Reindl Harald (h.rei...@thelounge.net) wrote: WARNING: at fs/ext4/super.c:339 ext4_journal_start_sb+0x11e/0x130() Hardware name: VMware Virtual Platform Modules linked in: binfmt_misc cls_u32 sch_htb xt_hl xt_LOG xt_limit xt_recent nf_conntrack_ipv4 nf_defrag_ipv4

Re: [systemd-devel] After firmare

2012-12-19 Thread Kay Sievers
On Wed, Dec 19, 2012 at 3:50 PM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 12.12.12 15:57, John Tobias (john.tobias...@gmail.com) wrote: I have a network.service (pls see below) for my wireless interface: [Unit] Description=Network [Service] Restart=on-failure

Re: [systemd-devel] [PATCH] Added support for EnvironmentDir

2012-12-19 Thread Lennart Poettering
On Mon, 10.12.12 17:27, Colin Guthrie (gm...@colin.guthr.ie) wrote: 'Twas brillig, and Pekka Lundstrom at 10/12/12 13:56 did gyre and gimble: + termvarnameEnvironmentDir=/varname/term +listitemparaSimilar to +

Re: [systemd-devel] udev device mapper rules for early boot?

2012-12-19 Thread Lennart Poettering
On Fri, 14.12.12 08:44, Nikolaus Rath (nikol...@rath.org) wrote: Looking at the relevant scripts, there doesn't seem to be any way to do that either. I can only enable or disable lvm in initrd globally, but I need to keep it enabled to mount the root fs. However, I just looked at the

Re: [systemd-devel] [PATCH] Added support for EnvironmentDir

2012-12-19 Thread Pekka Lundström
On 12/19/2012 06:00 PM, Lennart Poettering wrote: On Mon, 10.12.12 17:27, Colin Guthrie (gm...@colin.guthr.ie) wrote: 'Twas brillig, and Pekka Lundstrom at 10/12/12 13:56 did gyre and gimble: +termvarnameEnvironmentDir=/varname/term +

Re: [systemd-devel] [PATCH] add %U for uids in units

2012-12-19 Thread Lennart Poettering
On Fri, 07.12.12 00:01, Daniel Wallace (danielwall...@gtmanfred.com) wrote: Thanks, applied. --- man/systemd.unit.xml | 5 + src/core/unit-printf.c | 17 +++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/man/systemd.unit.xml b/man/systemd.unit.xml

Re: [systemd-devel] vmware-datarecovery+systemd.automount+EVC = crash

2012-12-19 Thread Dmitry Torokhov
On Wednesday, December 19, 2012 03:52:08 PM Lennart Poettering wrote: On Fri, 14.12.12 06:04, Reindl Harald (h.rei...@thelounge.net) wrote: WARNING: at fs/ext4/super.c:339 ext4_journal_start_sb+0x11e/0x130() Hardware name: VMware Virtual Platform Modules linked in: binfmt_misc cls_u32

Re: [systemd-devel] [PATCH] Added support for EnvironmentDir

2012-12-19 Thread Kok, Auke-jan H
On Wed, Dec 19, 2012 at 8:00 AM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 10.12.12 17:27, Colin Guthrie (gm...@colin.guthr.ie) wrote: 'Twas brillig, and Pekka Lundstrom at 10/12/12 13:56 did gyre and gimble: +

Re: [systemd-devel] eudev fork and patches there

2012-12-19 Thread Tollef Fog Heen
]] Lennart Poettering (In contrast to checking frwite() and friends on every single invocation it is usually nicer to just check ferror() after one is done with everything one had to do...) In that case, it's probably better to explicitly ignore the return value by casting it to void and so

Re: [systemd-devel] [PATCH] add hibernate and hybrid-sleep to zsh-completion

2012-12-19 Thread Lennart Poettering
On Wed, 19.12.12 12:28, Daniel Wallace (danielwall...@gtmanfred.com) wrote: Applied. Thanks --- shell-completion/systemd-zsh-completion.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell-completion/systemd-zsh-completion.zsh b/shell-completion/systemd-zsh-completion.zsh

Re: [systemd-devel] [RFC/PATCH] journal: new logging macros to include _SYSTEMD_UNIT

2012-12-19 Thread Lennart Poettering
On Wed, 05.12.12 10:55, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: Adding _SYSTEMD_UNIT= to log lines allows them to be shown in 'systemctl status' output, etc. A new set of macros and functions is added. This allows for less verbose notation than using log_struct() explicitly.

Re: [systemd-devel] [patch] Too many incoming connections (64)

2012-12-19 Thread Lennart Poettering
On Sun, 02.12.12 03:13, Dimitrios Apostolou (ji...@gmx.net) wrote: Hello list, some socket activated service gave me the error message you can see on the subject, maybe systemd should be more verbose in that case. Please see attached patch (untested). Thanks! Applied! Lennart --

Re: [systemd-devel] [PATCH] *.py: don't hardcode /usr/bin/python

2012-12-19 Thread Lennart Poettering
On Sat, 01.12.12 09:34, Ramkumar Ramachandra (artag...@gmail.com) wrote: Michael Biebl wrote: 2012/11/30 Ramkumar Ramachandra artag...@gmail.com: Execute python using /usr/bin/env python instead of hard-coding the I'm not really a fan of using /usr/bin/env, as you can pick up a

Re: [systemd-devel] .journal~ files

2012-12-19 Thread Lennart Poettering
On Thu, 29.11.12 10:34, Cristian Rodríguez (crrodrig...@opensuse.org) wrote: El 29/11/12 07:24, Colin Guthrie escribió: Hi, I have several .journal~ files in my journal dir... without me digging into the source, can someone explain what these are and if I can safely remove them (as they

Re: [systemd-devel] how to start a service when another sevice stops

2012-12-19 Thread Lennart Poettering
On Fri, 30.11.12 23:40, Reindl Harald (h.rei...@thelounge.net) wrote: Am 30.11.2012 23:28, schrieb Khem Raj: I have a scenario where, I have foo.service which runs on boot and later bar.service runs and it has to stop foo.service which I achieved by declaring it as Conflicts= in the unit

Re: [systemd-devel] [PATCH] pam_systemd: new option for the session class

2012-12-19 Thread Lennart Poettering
On Tue, 27.11.12 23:16, Matthew Monaco (dgbale...@0x01b.net) wrote: I don't see any reason why every DM (LightDM for me) needs code to support this. It looks to me like its safe to just point to the data in argv, let me know if it isn't. Sounds like a good idea. A few comments though: +

Re: [systemd-devel] ExecRestart

2012-12-19 Thread Lennart Poettering
On Wed, 28.11.12 22:41, Brandon Black (blbl...@gmail.com) wrote: The daemon's fast restart code does all of the expensive startup operations in the new daemon first (e.g. parsing large data input), then signals the existing daemon to shut itself down, waits for it to release its critical

Re: [systemd-devel] logind 196 keeps on locking my session

2012-12-19 Thread Lennart Poettering
On Wed, 28.11.12 10:31, Paul Neumann (paul1...@yahoo.de) wrote: Hi all, the new lock setting of HandleLidSwitch for logind in systemd 196 does not work correctly for me. After setting the option and closing the lid of my laptop, my session gets locked. However, as soon as I unlock the

Re: [systemd-devel] [RFC][PATCH 2/2] systemctl: switch-root - read init= from /proc/cmdline

2012-12-19 Thread Lennart Poettering
On Wed, 28.11.12 01:30, Tom Gundersen (t...@jklm.no) wrote: If the path to init is not specified as an argumnt to systemctl, but init= is given on the kernel commandline, use that. This means the initrd does not need glue code to parse the kernel commandline before passing on init= to

Re: [systemd-devel] [RFC][PATCH 1/2] fstab-generator: generate new_root.mount in initrd

2012-12-19 Thread Lennart Poettering
On Wed, 28.11.12 01:30, Tom Gundersen (t...@jklm.no) wrote: The configuration is taken from /proc/cmdline, aiming at emulating the behavior of the kernel when no initramfs is used. The supported options are: root=, rootfstype=, rootwait=, rootflags=, ro, and rw. rootdelay= was dropped, as

Re: [systemd-devel] Force rotating the journal?

2012-12-19 Thread Lennart Poettering
On Wed, 28.11.12 10:14, Dave Reisner (d...@falconindy.com) wrote: I'm not sure when it happened, but rotation used to be off by a difference of whatever the MaxFileSize option was, e.g. if you had a 200M MaxUse and a 50M MaxFileSize, then you'd see usage up to 250M before old logs were

Re: [systemd-devel] journal space requirements

2012-12-19 Thread Lennart Poettering
On Thu, 29.11.12 10:37, Colin Guthrie (gm...@colin.guthr.ie) wrote: Hi, So a couple complaints/queries are beginning trickling in regarding journal space requirements. A user was complaining that rotated journals were taking up too much room and they could be compressed down etc. I did

Re: [systemd-devel] eudev fork and patches there

2012-12-19 Thread Lennart Poettering
On Wed, 19.12.12 20:38, Tollef Fog Heen (tfh...@err.no) wrote: ]] Lennart Poettering (In contrast to checking frwite() and friends on every single invocation it is usually nicer to just check ferror() after one is done with everything one had to do...) In that case, it's probably

Re: [systemd-devel] logind 196 keeps on locking my session

2012-12-19 Thread Mantas Mikulėnas
On Thu, Dec 20, 2012 at 12:47 AM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 28.11.12 10:31, Paul Neumann (paul1...@yahoo.de) wrote: Hi all, the new lock setting of HandleLidSwitch for logind in systemd 196 does not work correctly for me. After setting the option and closing

Re: [systemd-devel] .journal~ files

2012-12-19 Thread Cristian Rodríguez
El mié 19 dic 2012 19:25:13 CLST, Lennart Poettering escribió: On Thu, 29.11.12 10:34, Cristian Rodríguez (crrodrig...@opensuse.org) wrote: El 29/11/12 07:24, Colin Guthrie escribió: Hi, I have several .journal~ files in my journal dir... without me digging into the source, can someone

Re: [systemd-devel] [PATCH] *.py: don't hardcode /usr/bin/python

2012-12-19 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Dec 19, 2012 at 11:02:30PM +0100, Lennart Poettering wrote: On Sat, 01.12.12 09:34, Ramkumar Ramachandra (artag...@gmail.com) wrote: Michael Biebl wrote: 2012/11/30 Ramkumar Ramachandra artag...@gmail.com: Execute python using /usr/bin/env python instead of hard-coding the