Re: [systemd-devel] Systemd Debugging with GDB

2012-09-13 Thread eleven
It's my pleasure to receive your reply and get your advice. Actually I really want to debug source codes from the OS boot(from systemd first starts) with virtual machines just like debug kernel sources or in some other ways I don't know . And I also do some works but failed, so I ask for your

Re: [systemd-devel] [PATCH] Expand specifiers in conditions.

2012-09-13 Thread Lennart Poettering
On Thu, 13.09.12 12:34, Auke Kok ([email protected]) wrote: > Add specifier expansion to Path and String conditions. > > Specifier expansion for conditions will help create instance > and user session units by allowing us to template conditions > based on the instance or user session param

[systemd-devel] [PATCH] Expand specifiers in conditions.

2012-09-13 Thread Auke Kok
Add specifier expansion to Path and String conditions. Specifier expansion for conditions will help create instance and user session units by allowing us to template conditions based on the instance or user session parameters. An example would be a system-wide user session service file that condi

Re: [systemd-devel] [PATCH] Fix broken links to sd-daemon.c

2012-09-13 Thread Lennart Poettering
On Thu, 13.09.12 13:44, Eelco Dolstra ([email protected]) wrote: Applied! Thanks! > --- > man/sd-daemon.xml | 2 +- > man/sd_booted.xml | 2 +- > man/sd_is_fifo.xml | 2 +- > man/sd_listen_fds.xml | 2 +- > man/sd_notify.xml | 2 +- > src/systemd/sd-daemon.h | 2

Re: [systemd-devel] [script] Eject CD before shutdown

2012-09-13 Thread Philip Müller
Sorry, that was my fault. As suggested it works. Thx again for your help. Phil Am 13.09.2012 18:19, schrieb Lennart Poettering: On Thu, 13.09.12 18:04, Philip Müller ([email protected]) wrote: [...] All operations are timed out in systemd by default. You can turn this off by pasing TimeoutSe

[systemd-devel] [PATCH] Fix broken links to sd-daemon.c

2012-09-13 Thread Eelco Dolstra
--- man/sd-daemon.xml | 2 +- man/sd_booted.xml | 2 +- man/sd_is_fifo.xml | 2 +- man/sd_listen_fds.xml | 2 +- man/sd_notify.xml | 2 +- src/systemd/sd-daemon.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/man/sd-daemon.xml b/man/sd-daemon.xml i

Re: [systemd-devel] [script] Eject CD before shutdown

2012-09-13 Thread Lennart Poettering
On Thu, 13.09.12 18:04, Philip Müller ([email protected]) wrote: [...] > All operations are timed out in systemd by default. You can turn this > off by pasing TimeoutSec=0. > > However, I'd probably recommend you to define your service a bit > differently. Add this to [Unit]: > > Defaul

[systemd-devel] [script] Eject CD before shutdown

2012-09-13 Thread Philip Müller
I'm working on a systemd.service file which should eject your CD/DVD and stop to display a message so the user can react and close his cd-tray. This was my first draft: [Unit] Description=LiveMedia Eject Service [Service] Type=oneshot RemainAfterExit=true ExecStart=/bin/true ExecStop=/etc/manj

Re: [systemd-devel] using systemd in an initramfs

2012-09-13 Thread Cliff Brake
On Thu, Sep 13, 2012 at 2:08 AM, Lennart Poettering wrote: > On Thu, 30.08.12 21:15, Cliff Brake ([email protected]) wrote: > > > Hello, > > > > I am trying to use systemd in an initramfs. The same rootfs works fine > > from SD/NAND flash. Does anyone have suggestions what might be wrong, or

Re: [systemd-devel] cannot start swap unit on lvm

2012-09-13 Thread Kay Sievers
On Thu, Sep 13, 2012 at 2:23 PM, Lennart Poettering wrote: > On Thu, 13.09.12 15:47, Alexey Shabalin ([email protected]) wrote: > >> > Please check with "udevadm info >> > /dev/disk/by-uuid/a8ce6981-1afd-4af6-8783-784b3c7a7d64" if the device is >> > properly initialized and the systemd tag appe

Re: [systemd-devel] Systemd Debugging with GDB

2012-09-13 Thread Lennart Poettering
On Thu, 13.09.12 13:52, eleven ([email protected]) wrote: > Dear All > > I am so interested in Systemd Design and it is so attractive to me! So I > want to join with you. > > But I have a problem bothered me for a while. > > Is there any way to debug Systemd's source codes with gdb ? You c

Re: [systemd-devel] cannot start swap unit on lvm

2012-09-13 Thread Lennart Poettering
On Thu, 13.09.12 15:47, Alexey Shabalin ([email protected]) wrote: > > Please check with "udevadm info > > /dev/disk/by-uuid/a8ce6981-1afd-4af6-8783-784b3c7a7d64" if the device is > > properly initialized and the systemd tag appears in TAGS=. Only then > > systemd will pick it up. > > > I see T

[systemd-devel] Systemd Debugging with GDB

2012-09-13 Thread eleven
Dear All I am so interested in Systemd Design and it is so attractive to me! So I want to join with you. But I have a problem bothered me for a while. Is there any way to debug Systemd's source codes with gdb ? Thank you so much . ___ systemd-devel

Re: [systemd-devel] cannot start swap unit on lvm

2012-09-13 Thread Alexey Shabalin
2012/9/13 Lennart Poettering : > On Thu, 30.08.12 21:00, Alexey Shabalin ([email protected]) wrote: > >> Hello. >> Sorry, i know that swap on lvm bad idea, but ... >> >> systemd-189 used systemd-fstab-generator and lvm2-activation-generator >> (i deleted fedora-storage-init.service and >> fedora

Re: [systemd-devel] [Feature Request] GET before SET watchdog timeout setting on IPMI compatible hardware

2012-09-13 Thread Charles_Rose
On Tuesday 11 September 2012 06:46 PM, Lennart Poettering wrote: > On Tue, 11.09.12 11:34, [email protected] ([email protected]) wrote: > >> Hello, >> >> IPMI watchdog hardware on servers can be configured outside the >> /dev/watchdog interface[1]. >> >> It would be beneficial if systemd

[systemd-devel] alsa-restore.service seems to be too early

2012-09-13 Thread Вечный Студент
13.09.2012, 02:08, "Lennart Poettering" : >  Hmm, weird. I'd recommend pinging the ALSA folks about this. If the >  control device doesn't work while the udev rules are executed this >  sounds like a driver bug and should be fixed in the kernel! I'm not sure all drivers writers are ready to fit t

Re: [systemd-devel] "telinit u" works strange and breaks glibc uprades

2012-09-13 Thread Alexey Shabalin
2012/9/13 Lennart Poettering : > On Thu, 30.08.12 13:07, Alexey Shabalin ([email protected]) wrote: > >> Hello. >> We have critival bug when upgading glibc(2.11.3-alt8 -> 2.16-alt1): >> >> error: execution of %post scriptlet from glibc-core-2.16-alt1 failed, exit >> status 1 >> >> This error fro

Re: [systemd-devel] [PATCH] don't check ratelimit on manual start

2012-09-13 Thread David Strauss
On Wed, Aug 29, 2012 at 4:28 AM, Lukáš Nykrýn wrote: > I have here a request that systemd should not refuse to start service because > of "start request repeated too quickly" when service is started manually. > I have prepared a patch, but I am not sure about my approach. It may be just an issue

Re: [systemd-devel] seat1: X session gone after resume from RAM

2012-09-13 Thread Lennart Poettering
On Sat, 25.08.12 14:21, Thomas Meyer ([email protected]) wrote: > Hi, > > I'm using XFCE and defined a second seat via loginctl attach. I can work > without any problems on my second seat, independently from seat0. > > But when I suspend to RAM and resume again, the X session on seat1 seems > to h

Re: [systemd-devel] [PATCH] shutdown: do reboot() for openvz container

2012-09-13 Thread Daniel P. Berrange
On Thu, Sep 13, 2012 at 12:30:00AM +0200, Lennart Poettering wrote: > On Thu, 13.09.12 00:25, Kay Sievers ([email protected]) wrote: > > > > > On Wed, Sep 12, 2012 at 11:54 PM, Lennart Poettering > > wrote: > > > On Wed, 12.09.12 11:51, Daniel P. Berrange ([email protected]) wrote: > > > > >> NB

Re: [systemd-devel] [PATCH] Arch: default to FONT=""

2012-09-13 Thread Tom Gundersen
On Thu, Sep 13, 2012 at 9:29 AM, Lennart Poettering wrote: > On Tue, 28.08.12 19:29, Tom Gundersen ([email protected]) wrote: > >> We do this for several reasons: >> >> * it is counter-intuitive that an empty vconsole.conf file is different >>from adding FONT=""; >> * the version of the default f

Re: [systemd-devel] test-journal failure with non-tmpfs /tmp

2012-09-13 Thread Lennart Poettering
On Fri, 20.07.12 08:23, Zbigniew Jedrzejewski-Szmek ([email protected]) wrote: > Hi, > > since f56d5db9199 ('util: rm_rf() refuse cleaning non-memory file > systems, as extra paranoia'), test-journal fails with: > > Assertion 'rm_rf(t, false, true, false) >= 0' failed at > src/journal/test-jour

Re: [systemd-devel] systemd security issue

2012-09-13 Thread Lennart Poettering
On Fri, 24.08.12 15:34, Richard Hughes ([email protected]) wrote: > > On 23 August 2012 17:25, Kay Sievers wrote: > > F17 should already have proper multi-seat support, if that's what you look > > for. > > I plugged in the pluggable-dock thing, and got this in dmesg: > > [259482.053980] udl

Re: [systemd-devel] [PATCH] Arch: default to FONT=""

2012-09-13 Thread Lennart Poettering
On Tue, 28.08.12 19:29, Tom Gundersen ([email protected]) wrote: > We do this for several reasons: > > * it is counter-intuitive that an empty vconsole.conf file is different >from adding FONT=""; > * the version of the default font shipped with Arch (the upstream one) >behaves very badly du

Re: [systemd-devel] [PATCH] don't check ratelimit on manual start

2012-09-13 Thread Lennart Poettering
On Wed, 29.08.12 13:28, Lukáš Nykrýn ([email protected]) wrote: > Hello, Heya, > I have here a request that systemd should not refuse to start service > because of "start request repeated too quickly" when service is > started manually. I have prepared a patch, but I am not sure about my > app

Re: [systemd-devel] "telinit u" works strange and breaks glibc uprades

2012-09-13 Thread Lennart Poettering
On Thu, 30.08.12 13:07, Alexey Shabalin ([email protected]) wrote: > Hello. > We have critival bug when upgading glibc(2.11.3-alt8 -> 2.16-alt1): > > error: execution of %post scriptlet from glibc-core-2.16-alt1 failed, exit > status 1 > > This error from /sbin/glibc_post_upgrade after run "t

Re: [systemd-devel] cannot start swap unit on lvm

2012-09-13 Thread Lennart Poettering
On Thu, 30.08.12 21:00, Alexey Shabalin ([email protected]) wrote: > Hello. > Sorry, i know that swap on lvm bad idea, but ... > > systemd-189 used systemd-fstab-generator and lvm2-activation-generator > (i deleted fedora-storage-init.service and > fedora-storage-init-late.service). > > For t

Re: [systemd-devel] using systemd in an initramfs

2012-09-13 Thread Lennart Poettering
On Thu, 30.08.12 21:15, Cliff Brake ([email protected]) wrote: > Hello, > > I am trying to use systemd in an initramfs. The same rootfs works fine > from SD/NAND flash. Does anyone have suggestions what might be wrong, or > how I can debug? Boot with debug logging enable and check dmesg.

Re: [systemd-devel] [PATCH] Try to start rescue.target if default.target is missing

2012-09-13 Thread Tomasz Torcz
On Wed, Sep 12, 2012 at 03:17:18PM -0700, Kok, Auke-jan H wrote: > On Wed, Sep 12, 2012 at 3:15 PM, Kok, Auke-jan H > wrote: > > On Tue, Sep 11, 2012 at 3:06 AM, Tomasz Torcz wrote: > >> From 0a3f3b2a46607a94efd2936ae7094a9ef7421e76 Mon Sep 17 00:00:00 2001 > >> From: Tomasz Torcz > >> Date: Fri