[systemd-devel] [PATCH] journal: build fix when LZ4 is enabled but XZ is not.

2014-09-25 Thread Gustavo Sverzut Barbieri
--- src/journal/journal-file.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h index da2ef3b..6b4bf0d 100644 --- a/src/journal/journal-file.h +++ b/src/journal/journal-file.h @@ -78,7 +78,7 @@ typedef struct JournalFile {

[systemd-devel] [PATCH] do not install factory/etc/pam.d if --disable-pam

2014-09-25 Thread Gustavo Sverzut Barbieri
--- Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.am b/Makefile.am index 5312851..52f578b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2050,9 +2050,11 @@ endif dist_factory_etc_DATA = \ factory/etc/nsswitch.conf +if HAVE_PAM dist_factory_pam_DATA = \

[systemd-devel] [PATCH 1/2] tmpfiles.d: split files to cope with split packages.

2014-09-25 Thread Gustavo Sverzut Barbieri
etc.conf was selectively (using m4) using resolved link, now this is moved to systemd-resolved.conf file. The etc.conf can be static and does not need to be generated anymore. systemd.conf was doing all the journal setup, now this is moved to systemd-journald.conf file. systemd-remote.conf was re

[systemd-devel] [PATCH 2/2] sysusers.d: split files to cope with split packages.

2014-09-25 Thread Gustavo Sverzut Barbieri
move each user/group creation to a file that represents its own split package, so it's possible to ship them in separate. --- Makefile.am| 33 +++-- sysusers.d/systemd-journal-remote.conf | 9 + sysusers.d/systemd-journal-upload.conf

[systemd-devel] [PATCH] only build and install systemd-bus-proxyd if --enable-kdbus

2014-09-25 Thread Gustavo Sverzut Barbieri
--- Makefile.am | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index 8a32880..62cf768 100644 --- a/Makefile.am +++ b/Makefile.am @@ -387,7 +387,6 @@ rootlibexec_PROGRAMS = \ systemd-ac-power \ systemd-sysctl \ systemd-sle

Re: [systemd-devel] [PATCH 1/2] tmpfiles.d: split files to cope with split packages.

2014-09-29 Thread Gustavo Sverzut Barbieri
On Thu, Sep 25, 2014 at 06:12:50PM -0300, Gustavo Sverzut Barbieri wrote: > etc.conf was selectively (using m4) using resolved link, now this is > moved to systemd-resolved.conf file. The etc.conf can be static and > does not need to be generated anymore. > > systemd.conf was doing

Re: [systemd-devel] [PATCH 1/2] tmpfiles.d: split files to cope with split packages.

2014-09-30 Thread Gustavo Sverzut Barbieri
On Tue, Sep 30, 2014 at 04:26:38AM +0200, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Sep 25, 2014 at 06:12:50PM -0300, Gustavo Sverzut Barbieri wrote: > > etc.conf was selectively (using m4) using resolved link, now this is > > moved to systemd-resolved.conf file. The etc.conf ca

Re: [systemd-devel] [PATCH 1/2] tmpfiles.d: split files to cope with split packages.

2014-09-30 Thread Gustavo Sverzut Barbieri
On Tue, Sep 30, 2014 at 04:26:38AM +0200, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Sep 25, 2014 at 06:12:50PM -0300, Gustavo Sverzut Barbieri wrote: > > etc.conf was selectively (using m4) using resolved link, now this is > > moved to systemd-resolved.conf file. The etc.conf ca

Re: [systemd-devel] [PATCH 2/2] sysusers.d: split files to cope with split packages.

2014-09-30 Thread Gustavo Sverzut Barbieri
On Tue, Sep 30, 2014 at 04:26:31AM +0200, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Sep 25, 2014 at 06:12:51PM -0300, Gustavo Sverzut Barbieri wrote: > > move each user/group creation to a file that represents its own split > > package, so it's possible to s

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Gustavo Sverzut Barbieri
as we saw. My only comment is that we should also remove: -ffunction-sections -fdata-sections those are only useful to enable gc-sections. From time to time someone should run a build with -ffunction-sections -fdata-sections -Wl,--gc-sections

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Gustavo Sverzut Barbieri
On Wed, Nov 26, 2014 at 06:27:45PM +0100, Michael Biebl wrote: > 2014-11-26 18:16 GMT+01:00 Gustavo Sverzut Barbieri > : > > > > My only comment is that we should also remove: > > -ffunction-sections > > -fdata-sections > > those are only useful

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-26 Thread Gustavo Sverzut Barbieri
On Wed, Nov 26, 2014 at 06:33:31PM +0100, Lennart Poettering wrote: > On Wed, 26.11.14 15:16, Gustavo Sverzut Barbieri (gustavo.barbi...@intel.com) > wrote: > > > I'm okay with the change to remove gc-sections. > > > > systemd is pretty good at not leaving crap i

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-27 Thread Gustavo Sverzut Barbieri
On Thu, Nov 27, 2014 at 03:42:37PM +0100, David Herrmann wrote: > Hi > > On Wed, Nov 26, 2014 at 6:40 PM, Gustavo Sverzut Barbieri > wrote: > > On Wed, Nov 26, 2014 at 06:33:31PM +0100, Lennart Poettering wrote: > >> On Wed, 26.11.14 15:16, Gustavo Sverzut Ba

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-27 Thread Gustavo Sverzut Barbieri
On Thu, Nov 27, 2014 at 06:50:19PM +0100, David Herrmann wrote: > Hi > > On Thu, Nov 27, 2014 at 6:35 PM, Peter Wu wrote: > > On Thursday 27 November 2014 13:42:27 Gustavo Sverzut Barbieri wrote: > >> I'm asking because from Peter Wu's email we're 26384

Re: [systemd-devel] [PATCH] build-sys: remove --gc-sections to fix debugging

2014-11-27 Thread Gustavo Sverzut Barbieri
On Thu, Nov 27, 2014 at 07:36:12PM +0100, David Herrmann wrote: > Hi > > On Thu, Nov 27, 2014 at 7:31 PM, Gustavo Sverzut Barbieri > wrote: > > Currently configure.ac has the LTO logic inside an: > > > > AS_CASE([$CFLAGS], [*-O[[12345\ ]]*], > > &g

Running a systemd-based Gentoo system

2010-09-07 Thread Gustavo Sverzut Barbieri
em at 7000! This is really weird, do you have any way to debug it? BR, -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 _

[PATCH] Allow disable of SysV init/rcN.d support at compile time.

2010-09-07 Thread Gustavo Sverzut Barbieri
This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to isolate code dealing with /etc/init.d and /etc/rcN.d for systems where it does not make sense (one that does not use sysv or one that is fully systemd native). The patch tries to be as little intrusive as possible, however in order

Re: Running a systemd-based Gentoo system

2010-09-07 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 2:04 AM, Michael Biebl wrote: > 2010/9/8 Gustavo Sverzut Barbieri : >>  - calling any of /etc/init.d scripts is bad, as it will call openrc >> and it will bring all dependencies on its own, including services >> managed by systemd that are up already.

Re: Systemd port on custom embedded linux

2010-09-08 Thread Gustavo Sverzut Barbieri
FIG_DEVTMPFS=y in your kernel? BTW, if this is always required now we should update README (and then I can change my Gentoo ebuild to check for it) BR, -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Gustavo Sverzut Barbieri
ported already. Jack, did you check EnvironmentFile=/etc/conf.d/xyz? if this file defines ABC=123, then you can use ExecStart=/path/to/app $ABC AFAIK the first ExecStart must be a full path to the binary and cannot come from envvars. -- Gustavo Sverzut Barbieri ht

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 6:19 AM, Fabian Henze wrote: > Am Mittwoch, 8. September 2010, 06:30:14 schrieb Gustavo Sverzut Barbieri: >>  - calling any of /etc/init.d scripts is bad, as it will call openrc >> and it will bring all dependencies on its own, including services >> ma

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Gustavo Sverzut Barbieri
of. Moreover, this is free software and people are taking care of their problems. Kay and Lennart focus on their stuff, we should help to fit our needs... or wait a possibly endless loop: while (!dreams_come_true()) complain(); :-) For instance, I already submitted

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Gustavo Sverzut Barbieri
powerful script that converts them to systemd units? Many of scripts these days use start-stop-daemon and we could generate matching units without much hassle. Anyway, your runscript.sh will be useful if we aim at having systemd as an official gentoo alternative. BR, -- Gustavo Sverzut Barbi

[PATCH] Add Gentoo welcome message.

2010-09-08 Thread Gustavo Sverzut Barbieri
--- src/util.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/util.c b/src/util.c index 0cd1fd3..ec3df94 100644 --- a/src/util.c +++ b/src/util.c @@ -2835,6 +2835,17 @@ void status_welcome(void) { status_printf("Welcome to \x1B[0;32m%s\x1B[0m!\n"

Provide INIT_VERSION?

2010-09-08 Thread Gustavo Sverzut Barbieri
=INIT_VERSION=sysvinit-1234 BR, -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ___ systemd-devel mailing list systemd-devel

Re: Systemd port on custom embedded linux

2010-09-08 Thread Gustavo Sverzut Barbieri
should make it work. If you don't need sysv init compatibility, then check out the patch I've send... at least it will remove some stat/open and avoid some checks you don't need. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded system

Re: [PATCH] Allow disable of SysV init/rcN.d support at compile time.

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 1:32 AM, Gustavo Sverzut Barbieri wrote: > This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to > isolate code dealing with /etc/init.d and /etc/rcN.d for systems where > it does not make sense (one that does not use sysv or one that is fully > sy

[PATCH] Allow disable of SysV init/rcN.d support at compile time.

2010-09-08 Thread Gustavo Sverzut Barbieri
This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to isolate code dealing with /etc/init.d and /etc/rcN.d for systems where it does not make sense (one that does not use sysv or one that is fully systemd native). The patch tries to be as little intrusive as possible, however in order

[PATCH] Allow compile without IPv6.

2010-09-08 Thread Gustavo Sverzut Barbieri
This patch isolates code using IPv6, AF_INET6 and in6 usage inside '#ifdef HAVE_IPV6' blocks. Some code assumed IPv6 and relied on its specific features, such as binding to a specific interface by means of sin6_scope_id like in socket-util.c:socket_address_parse(). Now a IPv4 solution is provided

Re: Systemd port on custom embedded linux

2010-09-08 Thread Gustavo Sverzut Barbieri
g > it to udev configuration. yeah, my system did not work properly until i did that. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (1

Re: [PATCH] Allow compile without IPv6.

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 12:01 PM, Kay Sievers wrote: > On Wed, Sep 8, 2010 at 16:36, Gustavo Sverzut Barbieri > wrote: >> This patch isolates code using IPv6, AF_INET6 and in6 usage inside >> '#ifdef HAVE_IPV6' blocks. > > I think new projects from 2010 sh

Re: [PATCH] Allow compile without IPv6.

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 12:17 PM, Gustavo Sverzut Barbieri wrote: > On Wed, Sep 8, 2010 at 12:01 PM, Kay Sievers wrote: >> On Wed, Sep 8, 2010 at 16:36, Gustavo Sverzut Barbieri >> wrote: >>> This patch isolates code using IPv6, AF_INET6 and in6 usage inside >&

Re: [PATCH] Allow compile without IPv6.

2010-09-08 Thread Gustavo Sverzut Barbieri
kernel where IPv6 is disabled, but that should be > all that it is doing. Damn! and I was thinking about providing a connman build without ipv6... :-D BTW, could you provide some connman.service in your next release? -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems ---

Re: [PATCH] Allow compile without IPv6.

2010-09-08 Thread Gustavo Sverzut Barbieri
bout providing a connman build without ipv6... :-D >> >> BTW, could you provide some connman.service in your next release? > > if you have done so already, please send a patch. We can clearly include > these. I still have the BlueZ patches from Lennart on my todo list. I have t

Re: Provide INIT_VERSION?

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 7:16 PM, Lennart Poettering wrote: > On Wed, 08.09.10 11:24, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) > wrote: > >> Hi all, >> >> Seems that sysvinit provides INIT_VERSION=sysvinit-1234 to its spawned >> processes and tools lik

Re: [PATCH 1/2] units: Merge halt/poweroff/reboot for the different distros

2010-09-08 Thread Gustavo Sverzut Barbieri
h mess of m4_ifdef() for such simple tasks? These all provide work around for distribution specific sysvinit tools... for instance the TARGET_GENTOO is wrong as we need to define INIT_VERSION otherwise the tools do nothing and exit. :-/ what do you think of implementin

[PATCH] Support IPv6-less systems with runtime check.

2010-09-08 Thread Gustavo Sverzut Barbieri
This patch introduces socket_ipv6_is_supported() call that checks for IPv6 availability. Code then check for it before using specific calls. In order to be less intrusive, this patch avoids IPv6 entries being parsed at all, this way we don't get such entries in the system and all other code paths

Re: [PATCH 1/2] units: Merge halt/poweroff/reboot for the different distros

2010-09-09 Thread Gustavo Sverzut Barbieri
f the process are still there or not, we could even log_debug("killing process %d (%s) with SIGKILL as it remained after SIGTERM") I can try to help there, but I don't want to do things in a way and later people say it should be the other :-) -- Gustavo Sverzut Barbieri http://pro

Re: [systemd-devel] Provide INIT_VERSION?

2010-09-13 Thread Gustavo Sverzut Barbieri
On Mon, Sep 13, 2010 at 2:14 PM, Lennart Poettering wrote: > On Wed, 08.09.10 20:14, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) > wrote: > >> >> On Wed, Sep 8, 2010 at 7:16 PM, Lennart Poettering >> wrote: >> > On Wed, 08.09.10 11:24, Gustavo Sverz

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

2010-09-14 Thread Gustavo Sverzut Barbieri
o you? It is required to work. Lennart, maybe we should make the kmod-setup take another flag "MUST" and "OPTIONAL", do modprobe for each module in separate and fail if "MUST" are not present? Right now it is confusing for users. -- Gustavo Sverzut Barbieri http://profu

[systemd-devel] [PATCH] gentoo: vconsole-setup support.

2010-09-19 Thread Gustavo Sverzut Barbieri
This patch is a bit bigger than expected since Gentoo being non-standard in some places. 1. it is installing binaries at /usr/bin instead of /bin. 2. it is using CamelCase names for consolefonts. 3. /etc/rc.conf:unicode=(yes|no) just forbids loadkeys and setfont "-u" options, but do not d

[systemd-devel] [PATCH] gentoo: locale-setup support.

2010-09-19 Thread Gustavo Sverzut Barbieri
Use locale variables from /etc/profile.env as Gentoo's openrc runscript does (tool that is used by /etc/init.d/* services). --- src/locale-setup.c | 26 ++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/src/locale-setup.c b/src/locale-setup.c index 923be0

[systemd-devel] Services enabled by default?

2010-09-20 Thread Gustavo Sverzut Barbieri
pulled... then I had to manually "systemctl enable $MOUNTPOINT.service"... - should we provide a "clean /tmp" service? BR, -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -

[systemd-devel] [PATCH] create parents of RANDOM_SEED if they do not exist.

2010-09-20 Thread Gustavo Sverzut Barbieri
it may happen that parent directories of RANDOM_SEED do not exist, in that case we must create it otherwise save will not work. --- src/random-seed.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/random-seed.c b/src/random-seed.c index 936ed47..2b3a61f 100644 -

Re: [systemd-devel] Services enabled by default?

2010-09-20 Thread Gustavo Sverzut Barbieri
On Mon, Sep 20, 2010 at 10:01 AM, Kay Sievers wrote: > On Mon, Sep 20, 2010 at 14:16, Gustavo Sverzut Barbieri > wrote: >>  - systemd-modules-load.service: why do we need this as a separated >> service? > > What else would it be? built-in systemd, just like locale setup

Re: [systemd-devel] Services enabled by default?

2010-09-20 Thread Gustavo Sverzut Barbieri
On Mon, Sep 20, 2010 at 10:08 AM, Matthew Miller wrote: > On Mon, Sep 20, 2010 at 09:16:10AM -0300, Gustavo Sverzut Barbieri wrote: >> while at it: >>   - do we really need to install 6 getty services by default? can't we >> just install one and people that don'

Re: [systemd-devel] Services enabled by default?

2010-09-20 Thread Gustavo Sverzut Barbieri
On Mon, Sep 20, 2010 at 10:14 AM, Matthew Miller wrote: > On Mon, Sep 20, 2010 at 10:13:20AM -0300, Gustavo Sverzut Barbieri wrote: >> Maybe integrate it into systemd? It's one single .c file as far as I >> could check. > > What's the advantage of making this monoli

Re: [systemd-devel] [PATCH] gentoo: vconsole-setup support.

2010-09-20 Thread Gustavo Sverzut Barbieri
On Mon, Sep 20, 2010 at 5:44 PM, Lennart Poettering wrote: > On Sun, 19.09.10 21:23, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) > wrote: > > Heya, > > Looks pretty good, but a few requests: > >> +#ifdef TARGET_GENTOO >> +/* Gentoo uses sys-apps/kbd that i

Re: [systemd-devel] [PATCH] gentoo: locale-setup support.

2010-09-20 Thread Gustavo Sverzut Barbieri
On Mon, Sep 20, 2010 at 5:58 PM, Lennart Poettering wrote: > On Sun, 19.09.10 21:32, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) > wrote: > > Heya, > >> Use locale variables from /etc/profile.env as Gentoo's openrc >> runscript does (tool that is used by /

[systemd-devel] [PATCH] gentoo: vconsole-setup support.

2010-09-20 Thread Gustavo Sverzut Barbieri
This patch is a bit bigger than expected since Gentoo being non-standard in some places. 1. it is installing binaries at /usr/bin instead of /bin. 2. it is using CamelCase names for consolefonts. 3. /etc/rc.conf:unicode=(yes|no) just forbids loadkeys and setfont "-u" options, but do not d

[systemd-devel] [PATCH] Allow disable of SysV init/rcN.d support at compile time

2010-09-20 Thread Gustavo Sverzut Barbieri
reduce the number of ifdefs. Lennart's suggestions were fixed and squashed with the original patch, that was sent by Gustavo Sverzut Barbieri (barbi...@profusion.mobi). --- configure.ac| 17 ++-- src/build.h |8 +++- src/dbus-manager.c | 49 ++-

[systemd-devel] [PATCH] fix tmpwatch service and timer installation.

2010-09-20 Thread Gustavo Sverzut Barbieri
--- Makefile.am | 16 +--- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/Makefile.am b/Makefile.am index b5b2a9d..3c3fa3b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -183,7 +183,9 @@ dist_systemunit_DATA = \ units/remount-rootfs.service \ units/prin

[systemd-devel] simple systemd boot status

2010-09-21 Thread Gustavo Sverzut Barbieri
icient that all the replication done in plymouth BTW). The project contains a very simple ad-hoc makefile, after I have some more code I will add autoconf to it. Any input and patches are appreciated. Lennart: do you mind adding a simple property NFailedJobs? It would be very helpful :-) BR, --

Re: [systemd-devel] Standard directory for shell scripts?

2010-09-22 Thread Gustavo Sverzut Barbieri
/lib/systemd/ or /lib/systemd/scripts, not inside /lib/systemd/system. The rationale is that the current systemd applications are kept at /lib/systemd itself. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...

Re: [systemd-devel] simple systemd boot status

2010-09-26 Thread Gustavo Sverzut Barbieri
On Sun, Sep 26, 2010 at 9:54 PM, Lennart Poettering wrote: > 1;2591;0cOn Tue, 21.09.10 23:39, Gustavo Sverzut Barbieri > (barbi...@profusion.mobi) wrote: > >> Hi all, >> >> I've wrote a proof of concept of a simple boot status for systemd. >> Yeah, I kn

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

2010-09-30 Thread Gustavo Sverzut Barbieri
ot;Not preloading file %s with size out of bounds > %lli", fn, (unsigned long long) st->st_size); unsigned long long = llu, not lli. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@g

[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] [PATCH 3/4] Adding halt binary to shutdown the system

2010-09-30 Thread Gustavo Sverzut Barbieri
init, but post manager_loop(). Being pid1 we can use kill(-1), wait() will work for every process, etc. if we need things like UPS, better to make that uniform and always call it if present. BR, -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems --

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

2010-09-30 Thread Gustavo Sverzut Barbieri
Anyway, if you have some ideas about the design, other than minor details to make it work being execv() from main.c if (getpid() == 1) (in the place of freeze()). -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com S

[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

[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 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 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 \ -

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-

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

2010-10-01 Thread Gustavo Sverzut Barbieri
I'm replying to this as couple of the bad ideas were my fault :-) On Fri, Oct 1, 2010 at 10:52 AM, Lennart Poettering wrote: > On Fri, 01.10.10 02:28, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) > wrote: > >> From: Fabiano Fidencio >> >> This

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

2010-10-01 Thread Gustavo Sverzut Barbieri
On Fri, Oct 1, 2010 at 11:36 AM, Michael Biebl wrote: > 2010/10/1 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

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

2010-10-01 Thread Gustavo Sverzut Barbieri
On Fri, Oct 1, 2010 at 10:54 AM, Lennart Poettering wrote: > On Fri, 01.10.10 02:28, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) > wrote: > >> +++ b/src/target.c >> @@ -172,6 +172,14 @@ static int target_start(Unit *u) { >>          ass

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

2010-10-01 Thread Gustavo Sverzut Barbieri
On Fri, Oct 1, 2010 at 11:50 AM, Michael Biebl wrote: > 2010/10/1 Gustavo Sverzut Barbieri : >> On Fri, Oct 1, 2010 at 11:36 AM, Michael Biebl wrote: >>> 2010/10/1 Gustavo Sverzut Barbieri : >>>> From: Fabiano Fidencio >>>> >>>> This functio

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

2010-10-01 Thread Gustavo Sverzut Barbieri
On Fri, Oct 1, 2010 at 1:33 PM, Lennart Poettering wrote: > On Fri, 01.10.10 11:44, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) > wrote: > >> >> On Fri, Oct 1, 2010 at 10:54 AM, Lennart Poettering >> wrote: >> > On Fri, 01.10.10 02:28, Gustavo Sverz

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

2010-10-01 Thread Gustavo Sverzut Barbieri
t offer >> the necessary flexibility. > > As mentioned, Fabianos code is intended as last resort. The proper order > in which to shut down stuff should be ensured with with the usual > brefore/after dependencies. yes! Just one thing: do we still need a killall.service? Or

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

2010-10-01 Thread Gustavo Sverzut Barbieri
On Fri, Oct 1, 2010 at 1:55 PM, Lennart Poettering wrote: > On Fri, 01.10.10 13:53, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) > wrote: > >> > As mentioned, Fabianos code is intended as last resort. The proper order >> > in which to shut down stuff should be

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

2010-10-05 Thread Gustavo Sverzut Barbieri
       if (k == EOF) >> +                                break; >> + >> +                        free(dev); >> +                        return -EBADMSG; > > Please just "continue" in this error case, too, much like you handle > mountinfo. Yes, I've ask

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

2010-10-05 Thread Gustavo Sverzut Barbieri
From: Fabiano Fidencio This functions will: - umount all mount points that aren't API - remount read-only all mount points that can't be umounted - umount all swap devices. - detach all loopback devices TODO: - umount dms Mountpoints are being read from /proc/self/mountinfo.

[systemd-devel] [PATCH 2/2] Adding binary to shutdown the system

2010-10-05 Thread Gustavo Sverzut Barbieri
From: Fabiano Fidencio This functions are working as follows: - Send a SIGTERM to all processes that may be finished - Send a SIGKILL to all processes that still live and may be finished - Try to unmount all mount points - Try to remount read-only all mount points that can't be um

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

2010-10-05 Thread Gustavo Sverzut Barbieri
From: Fabiano Fidencio This functions will: - umount all mount points that aren't API - remount read-only all mount points that can't be umounted - umount all swap devices. - detach all loopback devices TODO: - umount dms Mountpoints are being read from /proc/self/mountinfo.

[systemd-devel] [PATCH 2/2] Adding binary to shutdown the system

2010-10-05 Thread Gustavo Sverzut Barbieri
From: Fabiano Fidencio This functions are working as follows: - Send a SIGTERM to all processes that may be finished - Send a SIGKILL to all processes that still live and may be finished - Try to unmount all mount points - Try to remount read-only all mount points that can't be um

Re: [systemd-devel] [PATCH 2/2] Adding binary to shutdown the system

2010-10-05 Thread Gustavo Sverzut Barbieri
On Wed, Oct 6, 2010 at 2:05 AM, Gustavo Sverzut Barbieri wrote: > From: Fabiano Fidencio > > This functions are working as follows: >    - Send a SIGTERM to all processes that may be finished >    - Send a SIGKILL to all processes that still live and may be finished >    -

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

2010-10-05 Thread Gustavo Sverzut Barbieri
On Wed, Oct 6, 2010 at 2:05 AM, Gustavo Sverzut Barbieri wrote: > From: Fabiano Fidencio > > This functions will: >    - umount all mount points that aren't API >    - remount read-only all mount points that can't be umounted >    - umount all swap devices. >  

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

2010-10-06 Thread Gustavo Sverzut Barbieri
On Wed, Oct 6, 2010 at 10:09 AM, Lennart Poettering wrote: > On Wed, 06.10.10 02:05, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) > wrote: > >> +#define LOOP_CLR_FD     0x4C01 > > Is there any particular reason you define this here? To me it appears > that linux/lo

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

2010-10-06 Thread Gustavo Sverzut Barbieri
On Wed, Oct 6, 2010 at 10:40 AM, Gustavo Sverzut Barbieri wrote: >>> +        ioctl(fd, LOOP_CLR_FD, 0); >>> +        r = errno; >>> +        close_nointr(fd); >>> + >>> +        if (r == ENXIO) /* not bound, so no error */ >>> +            

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

2010-10-06 Thread Gustavo Sverzut Barbieri
From: Fabiano Fidencio This functions will: - umount all mount points that aren't API - remount read-only all mount points that can't be umounted - umount all swap devices. - detach all loopback devices TODO: - umount dms Mountpoints are being read from /proc/self/mountinfo.

[systemd-devel] [PATCH 2/2] Adding binary to shutdown the system

2010-10-06 Thread Gustavo Sverzut Barbieri
From: Fabiano Fidencio This functions are working as follows: - Send a SIGTERM to all processes that may be finished - Send a SIGKILL to all processes that still live and may be finished - Try to unmount all mount points - Try to remount read-only all mount points that can't be um

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

2010-10-07 Thread Gustavo Sverzut Barbieri
> > I think, here you can let libudev return only the loop devices with: >  udev_enumerate_add_match_sysname(, "loop*"); and the snprintf() is totally useless, the strstr case should be early continue "if (!strstr(..)) cont

Re: [systemd-devel] [PATCH] vconsole-setup: fix path on Arch

2010-10-07 Thread Gustavo Sverzut Barbieri
ard places now! > > I totally agree. I think this serves as a start point to people > starting migrating their init. If / when Arch developers decide to > totally migrate to systemd, I hope these patches can be dropped. I agree, but I've asked Gentoo developers and they said

[systemd-devel] [PATCH] consider TRUNCATE_DIRECTORY as well.

2010-10-19 Thread Gustavo Sverzut Barbieri
-- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 From 9e3f451fd0a2fc7b15cca2078dc2d376e770de23 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Tue, 19 Oct

Re: [systemd-devel] Failure to remount / ro (Was: Re: [PATCH 2/4] Adding unmount functions to be used in shutdown)

2010-10-24 Thread Gustavo Sverzut Barbieri
   if (streq(mp->path, "/")) > +                        continue; >                          ^ add failed++ to make sure / is remounted-ro? it would be a bit misleading. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems ---

Re: [systemd-devel] Failure to remount / ro (Was: Re: [PATCH 2/4] Adding unmount functions to be used in shutdown)

2010-10-24 Thread Gustavo Sverzut Barbieri
On Sun, Oct 24, 2010 at 2:01 PM, Michael Biebl wrote: > 2010/10/24 Gustavo Sverzut Barbieri : >> On Sun, Oct 24, 2010 at 12:41 PM, Michael Biebl wrote: >>> Together with fidencio I tracked down the bug which caused / *not* to >>> be remounted ro on shutdown. >>

Re: [systemd-devel] Failure to remount / ro (Was: Re: [PATCH 2/4] Adding unmount functions to be used in shutdown)

2010-10-24 Thread Gustavo Sverzut Barbieri
On Sun, Oct 24, 2010 at 2:17 PM, Michael Biebl wrote: > 2010/10/24 Gustavo Sverzut Barbieri : >> On Sun, Oct 24, 2010 at 2:01 PM, Michael Biebl wrote: >>> 2010/10/24 Gustavo Sverzut Barbieri : >>>> On Sun, Oct 24, 2010 at 12:41 PM, Michael Biebl wrote: >>

Re: [systemd-devel] Log of all processes

2010-10-25 Thread Gustavo Sverzut Barbieri
et it to 300). I have a "live" (from git) systemd ebuild, with instructions I'm collecting at: http://barbieri-playground.googlecode.com/svn/gentoo/overlay/sys-apps/systemd/README.txt As for shutdown, yeah, it's as fast as it should be ;-) We're do

Re: [systemd-devel] Log of all processes

2010-10-25 Thread Gustavo Sverzut Barbieri
On Mon, Oct 25, 2010 at 10:20 AM, Kay Sievers wrote: > On Mon, Oct 25, 2010 at 13:27, Gustavo Sverzut Barbieri > wrote: > >> It boots into my Enlightenment17 with pid around 500, >> with a hack to ignore some acpid udev modprobes I can get it to 300). > > Yeah,

Re: [systemd-devel] socket based activation for Python?

2010-11-07 Thread Gustavo Sverzut Barbieri
.read() that maps directly to C calls. I'm pretty sure there are similar things for sockets/sendmsg/readmsg. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 __

Re: [systemd-devel] An update

2010-11-07 Thread Gustavo Sverzut Barbieri
> And another one; sometimes when I wake up after a suspend, the system > goes to the BIOS screen and a normal boot, instead of bringing back > the suspended system. > > Except those two problems, everything is working fine. No idea, those do not happen to me. -- Gustavo Sver

Re: [systemd-devel] An update

2010-11-08 Thread Gustavo Sverzut Barbieri
On Sun, Nov 7, 2010 at 2:37 PM, Greg KH wrote: > On Sun, Nov 07, 2010 at 02:15:02PM -0200, Gustavo Sverzut Barbieri wrote: >> On Tue, Nov 2, 2010 at 9:34 PM, Canek Pel??ez Vald??s >> wrote: >> > Hi; I just wanted to give an update on the status of my system running >

Re: [systemd-devel] An update

2010-11-08 Thread Gustavo Sverzut Barbieri
Of course I did forget the attached file in previous On Mon, Nov 8, 2010 at 9:24 AM, Gustavo Sverzut Barbieri wrote: > On Sun, Nov 7, 2010 at 2:37 PM, Greg KH wrote: >> On Sun, Nov 07, 2010 at 02:15:02PM -0200, Gustavo Sverzut Barbieri wrote: >>> On Tue, Nov 2, 2010 at 9:34

Re: [systemd-devel] BTRFS bug with parallel mounts?

2010-11-10 Thread Gustavo Sverzut Barbieri
On Wednesday, November 10, 2010, Gustavo Sverzut Barbieri wrote: > Hi all, > > First, I'm not typing much or send the kernel oops since I'm at a > phone without access to my lap ATM > > So yesterday I got my new laptop with quad core i7 and SSD. gentoo's > ope

[systemd-devel] BTRFS bug with parallel mounts?

2010-11-10 Thread Gustavo Sverzut Barbieri
o be mounted serially and forcefully? This would be helpful for buggy FS while you can't get the fix (or to install and apply the fix -- as I'm using openrc but in future I'll not) -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems

Re: [systemd-devel] BTRFS bug with parallel mounts?

2010-11-10 Thread Gustavo Sverzut Barbieri
On Wed, Nov 10, 2010 at 9:33 AM, Gustavo Sverzut Barbieri wrote: > On Wednesday, November 10, 2010, Gustavo Sverzut Barbieri > wrote: >> Hi all, >> >> First, I'm not typing much or send the kernel oops since I'm at a >> phone without access to my lap AT

Re: [systemd-devel] BTRFS bug with parallel mounts?

2010-11-10 Thread Gustavo Sverzut Barbieri
On Wed, Nov 10, 2010 at 2:11 PM, Greg KH wrote: > On Wed, Nov 10, 2010 at 01:02:51PM -0200, Gustavo Sverzut Barbieri wrote: >> On Wed, Nov 10, 2010 at 9:33 AM, Gustavo Sverzut Barbieri >> wrote: >> > On Wednesday, November 10, 2010, Gustavo Sverzut Barbieri &

Re: [systemd-devel] BTRFS bug with parallel mounts?

2010-11-11 Thread Gustavo Sverzut Barbieri
On Thursday, November 11, 2010, Mike Kazantsev wrote: > On Wed, 10 Nov 2010 15:52:51 -0200 > Gustavo Sverzut Barbieri wrote: > >> On Wed, Nov 10, 2010 at 2:11 PM, Greg KH wrote: >> > On Wed, Nov 10, 2010 at 01:02:51PM -0200, Gustavo Sverzut Barbieri wrote: >> >

[systemd-devel] [PATCH] dbus-glib is just required by gtk's systemadm

2010-11-14 Thread Gustavo Sverzut Barbieri
See attached patch. Another option is to just have dbus-glib-1 inside the PKG_CHECK_MODULES(GTK...) -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 From

  1   2   >