Re: [systemd-devel] [PATCH 1/4] Adding halt binary to shutdown the system

2010-09-30 Thread Gustavo Sverzut Barbieri
On Fri, Oct 1, 2010 at 2:28 AM, Gustavo Sverzut Barbieri wrote: > From: Fabiano Fidencio > > This functions are working as follows: >    - Send a SIGTERM to all process >    - Send a SIGKILL to all process >    - Try to umount all mount points >    - Try to remount read-only all mount points that

[systemd-devel] [PATCH 4/4] remove gentoo specific services

2010-09-30 Thread Gustavo Sverzut Barbieri
--- Makefile.am |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index bf9d9ab..04e4ad9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -291,10 +291,6 @@ endif if TARGET_GENTOO dist_systemunit_DATA += \ - units/gentoo/halt.service \ -

[systemd-devel] [PATCH 3/4] fix to not rely on (halt|reboot|poweroff).service anymore

2010-09-30 Thread Gustavo Sverzut Barbieri
--- units/halt.target |2 -- units/hwclock-save.service|2 +- units/poweroff.target |2 -- units/reboot.target |2 -- units/systemd-random-seed-save.service.in |2 +- units/sys

[systemd-devel] [PATCH 2/4] special shutdown targets will now cause manager to exit.

2010-09-30 Thread Gustavo Sverzut Barbieri
--- Makefile.am |1 + src/main.c| 39 ++- src/manager.h |3 +++ src/target.c |8 4 files changed, 50 insertions(+), 1 deletions(-) diff --git a/Makefile.am b/Makefile.am index 4d8e181..bf9d9ab 100644 --- a/Makefile.am +++ b/Makefil

[systemd-devel] [PATCH 1/4] Adding halt binary to shutdown the system

2010-09-30 Thread Gustavo Sverzut Barbieri
From: Fabiano Fidencio This functions are working as follows: - Send a SIGTERM to all process - Send a SIGKILL to all process - Try to umount all mount points - Try to remount read-only all mount points that can't be umounted - Call shutdown If one step fail, shutdown

Re: [systemd-devel] [PATCH 3/4] Adding halt binary to shutdown the system

2010-09-30 Thread Fabiano Fidêncio
2010/10/1 Andrey Borzenkov : Hey Andrey! > > > Thu, 30 Sep 2010 18:10:47 -0300 письмо от [email protected]: >> From: Fabiano Fidencio >> This functions are working as follows: >> - Send a SIGTERM to all process >> - Send a SIGKILL to all process >> - Try to umount all mount points >> - Try

Re: [systemd-devel] [PATCH 3/4] Adding halt binary to shutdown the system

2010-09-30 Thread Gustavo Sverzut Barbieri
On Thu, Sep 30, 2010 at 6:10 PM, wrote: > From: Fabiano Fidencio > > This functions are working as follows: >    - Send a SIGTERM to all process >    - Send a SIGKILL to all process >    - Try to umount all mount points >    - Try to remount read-only all mount points that can't >    be umounted

Re: [systemd-devel] [PATCH 3/4] Adding halt binary to shutdown the system

2010-09-30 Thread Gustavo Sverzut Barbieri
2010/10/1 Andrey Borzenkov : > > > Thu, 30 Sep 2010 18:10:47 -0300 письмо от [email protected]: >> From: Fabiano Fidencio >> This functions are working as follows: >> - Send a SIGTERM to all process >> - Send a SIGKILL to all process >> - Try to umount all mount points >> - Try to remount re

Re: [systemd-devel] [PATCH 3/4] Adding halt bin ary to shutdown the system

2010-09-30 Thread Andrey Borzenkov
Thu, 30 Sep 2010 18:10:47 -0300 письмо от [email protected]: > From: Fabiano Fidencio > This functions are working as follows: > - Send a SIGTERM to all process > - Send a SIGKILL to all process > - Try to umount all mount points > - Try to remount read-only all mount points that can't > b

Re: [systemd-devel] Systemd port on custom embedded linux

2010-09-30 Thread cristian . axenie
Yes of course, I meant dbus.service, excuse me for the mistake! I am using in my build environment dbus 1.3.2 at the moment and tha's why I use some older variants of units! Thanks for making it clear! Best! --Original Message-- From: Michael Biebl To: Cristian Axenie Cc: systemd-devel@l

Re: [systemd-devel] Systemd port on custom embedded linux

2010-09-30 Thread Michael Biebl
2010/10/1 Cristian Axenie : > Hi..again ! > > I've manged to solve my problems ! It seems I had to add an : > ExecStartPre=/bin/rm -f /var/run/messagebus.pid > to my dbus.target unit to ensure that dbus-daemon always starts correctly. I hope you mean dbus.service here. You do know that dbus upstr

[systemd-devel] [PATCH 2/4] Adding unmount functions to be used in shutdown

2010-09-30 Thread fidencio
From: Fabiano Fidencio This functions will unmount all filesystem that aren't api (and those which fail will be remounted read-only). Filesystems are being read from /proc/self/mountinfo. --- Makefile.am |1 + src/umount.c | 183 ++ s

Re: [systemd-devel] Systemd port on custom embedded linux

2010-09-30 Thread Cristian Axenie
Hi..again ! I've manged to solve my problems ! It seems I had to add an : ExecStartPre=/bin/rm -f /var/run/messagebus.pid to my dbus.target unit to ensure that dbus-daemon always starts correctly. Now the system bus is healthy and I can use it properly. Best ! 2010/9/30 Cristian Axenie > Hi al

[systemd-devel] [PATCH 2/4] Adding unmount functions to be used in shutdown

2010-09-30 Thread fidencio
From: Fabiano Fidencio This functions will unmount all filesystem that aren't api (and those which fail will be remounted read-only). Filesystems are being read from /proc/self/mountinfo. --- Makefile.am |1 + src/umount.c | 183 ++ s

[systemd-devel] [PATCH 1/4] Don't stop the mountinfo's parser if one line can't be read

2010-09-30 Thread fidencio
From: Fabiano Fidêncio The current behavior of the /proc/self/mountinfo's parser is stop the parser if the parser fail. I'm only changing this behavior to try the next line and adding a warning if occurs a fail. --- src/mount.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-)

[systemd-devel] [PATCH 4/4] Fixing typo: seperator -> separator

2010-09-30 Thread fidencio
From: Fabiano Fidencio --- src/mount.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mount.c b/src/mount.c index 2fb5822..52743db 100644 --- a/src/mount.c +++ b/src/mount.c @@ -1420,7 +1420,7 @@ static int mount_load_proc_self_mountinfo(Manager *m, bool set_flags

[systemd-devel] [PATCH 3/4] Adding halt binary to shutdown the system

2010-09-30 Thread fidencio
From: Fabiano Fidencio This functions are working as follows: - Send a SIGTERM to all process - Send a SIGKILL to all process - Try to umount all mount points - Try to remount read-only all mount points that can't be umounted - Call shutdown If one step fail, shutdown

[systemd-devel] [PATCH] Compiler and linker flags to reduce binary size.

2010-09-30 Thread Gustavo Sverzut Barbieri
Reduce number of exported symbols with -fvisibility=hidden by default, this is safe as we're not generating and loadable library and our binaries should have no exported symbol other than main(). This alone reduces around 4kb per binary. It will also request GCC to emit every function and data var

Re: [systemd-devel] [systemd-commits] src/readahead-collect.c src/readahead-common.c

2010-09-30 Thread Gustavo Sverzut Barbieri
On Thu, Sep 30, 2010 at 1:06 PM, Lennart Poettering wrote: >         if (st->st_size <= 0 || st->st_size > file_size_max) { > -                log_debug("Not preloading file %s with size out of bounds > %zi", fn, st->st_size); > +                log_debug("Not preloading file %s with size out of

Re: [systemd-devel] Systemd port on custom embedded linux

2010-09-30 Thread Cristian Axenie
Hi all! Next a failing context for DBus daemon is described both when using systemctl enable dbus.service to generate links in the specific .target.wants dirs or by using the default unit configuration after building systemd. So, after enabling the dbus unit and booting the board I get : 9.50