[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-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 9:11 PM, Santi wrote: > --- /dev/null > +++ b/units/halt.service.m4 > @@ -0,0 +1,49 @@ > +#  This file is part of systemd. > +# > +#  systemd is free software; you can redistribute it and/or modify it > +#  under the terms of the GNU General Public License as published by >

[PATCH 2/2] README: Update requirements

2010-09-08 Thread Santi
--- Hi *, I don't know if it's worth saying Linux >= 2.6.30 with an additional patch, but as 2.6.36 is not released yet... HTH, Santi README | 11 ++- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README b/README index 492e374..96da36c 100644 --- a/README +++ b/READ

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

2010-09-08 Thread Santi
--- Makefile.am | 23 ++- units/.gitignore |3 ++ units/arch/halt.service | 19 units/arch/poweroff.service | 19 units/arch/reboot.service | 19 units/debian/halt.service

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 like /sbin/halt check for it to just the

Re: [PATCH] Add Gentoo welcome message.

2010-09-08 Thread Lennart Poettering
On Wed, 08.09.10 11:12, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) wrote: Thanks, applied. Lennart -- Lennart Poettering - Red Hat, Inc. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/l

Re: [systemd-devel] Starting a script early in boot

2010-09-08 Thread Lennart Poettering
On Wed, 08.09.10 07:01, Daniel Drake (d...@laptop.org) wrote: > > [Service] > > Type=oneshot > > ExecStart=/usr/bin/olpc-configure > > > > [Install] > > WantedBy=base.target > > > > I assume you meant basic.target instead of base.target Yupp. You're right! Lennart -- Lennart Poettering - Red

Re: Provide INIT_VERSION?

2010-09-08 Thread Lennart Poettering
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 like /sbin/halt check for it to just then check > for $RUNLEVEL so I wonder if we should provide this in sy

Re: [PATCH] Allow compile without IPv6.

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 1:35 PM, Marcel Holtmann wrote: > Hi Gustavo, > >> >> >> I think new projects from 2010 should not have ipv4-only. This time >> >> >> should be over, finally. And people should get used to see ipv6 >> >> >> everywhere, and we should try to break the chicken-egg thing whereve

Re: [PATCH] Allow compile without IPv6.

2010-09-08 Thread Marcel Holtmann
Hi Gustavo, > >> >> I think new projects from 2010 should not have ipv4-only. This time > >> >> should be over, finally. And people should get used to see ipv6 > >> >> everywhere, and we should try to break the chicken-egg thing wherever > >> >> possible. :) > >> >> > >> >> I can see the use for a

Re: [PATCH] Allow compile without IPv6.

2010-09-08 Thread Marcel Holtmann
Hi Gustavo, > >> I think new projects from 2010 should not have ipv4-only. This time > >> should be over, finally. And people should get used to see ipv6 > >> everywhere, and we should try to break the chicken-egg thing wherever > >> possible. :) > >> > >> I can see the use for a systemd without a

Re: [PATCH] Allow compile without IPv6.

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 1:02 PM, Marcel Holtmann wrote: > Hi Gustavo, > >> >> I think new projects from 2010 should not have ipv4-only. This time >> >> should be over, finally. And people should get used to see ipv6 >> >> everywhere, and we should try to break the chicken-egg thing wherever >> >> p

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 >>> '#ifdef HAVE_IPV6' blocks. >> >> I

Re: Systemd port on custom embedded linux

2010-09-08 Thread Cristian Axenie
The patches aren't applying correctly ! For what version of systemd were extracted? Best ! On Wed, Sep 8, 2010 at 5:59 PM, Gustavo Sverzut Barbieri < barbi...@profusion.mobi> wrote: > On Wed, Sep 8, 2010 at 11:44 AM, Cristian Axenie > wrote: > > TIA for the patch. I would like to see this worki

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 should not have ipv4-only. This time > shoul

Re: [PATCH] Allow compile without IPv6.

2010-09-08 Thread Kay Sievers
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 should not have ipv4-only. This time should be over, finally. And people should get used to see ipv6 every

Re: Systemd port on custom embedded linux

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 11:44 AM, Cristian Axenie wrote: > TIA for the patch. I would like to see this working. Where should the patch > be available? just sent them to mail list: http://lists.freedesktop.org/archives/systemd-devel/2010-September/000272.html http://lists.freedesktop.org/archi

Re: Systemd port on custom embedded linux

2010-09-08 Thread Cristian Axenie
TIA for the patch. I would like to see this working. Where should the patch be available? As for the systemd unit dir in dbus setup it is present and I am now adding it to udev configuration. Best ! On Wed, Sep 8, 2010 at 5:32 PM, Gustavo Sverzut Barbieri < barbi...@profusion.mobi> wrote: > On

[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

[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

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 > systemd native).

Re: Systemd port on custom embedded linux

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 11:25 AM, Cristian Axenie wrote: > I've managed to add the cgroupfs support and the systems doesn't complain > when mounting any filesystem. Due to the fact that I have disabled selinux > and auditing support I get the following messages : > > [   18.77] Freeing init mem

Re: Systemd port on custom embedded linux

2010-09-08 Thread Cristian Axenie
I've managed to add the cgroupfs support and the systems doesn't complain when mounting any filesystem. Due to the fact that I have disabled selinux and auditing support I get the following messages : [ 18.77] Freeing init memory: 152K [ 19.43] systemd[1]: systemd 8 running in system m

Provide INIT_VERSION?

2010-09-08 Thread Gustavo Sverzut Barbieri
Hi all, Seems that sysvinit provides INIT_VERSION=sysvinit-1234 to its spawned processes and tools like /sbin/halt check for it to just then check for $RUNLEVEL so I wonder if we should provide this in systemd automatically or I should change my .service units to provide them with Environment=INIT

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

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Reno Reckling
Am 08.09.2010 16:02, schrieb Gustavo Sverzut Barbieri: > Since you're doing this approach that would require an extra step, why > not aim at a more powerful script that converts them to systemd units? > Many of scripts these days use start-stop-daemon and we could generate > matching units without

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 8:53 AM, Reno Reckling wrote: >  Am 08.09.2010 05:04, schrieb Michael Biebl: >> Without knowing too much about Gentoo and simply looking at what the >> Gentoo handbook has to say about Gentoo init scripts [1], >> why don't you simply provide an /sbin/runscript implementation

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Jack Byer
>  Not sure about Gentoo, but Debian and Fedora have “alternatives” subsystem, > which helps in such situation. > >  For specific case of ?DM, Fedora has hacky /etc/X11/prefdm script which > is responsible for starting preffered one. > Gentoo has something similar and now that I think about it the

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Tomasz Torcz
On Wed, Sep 08, 2010 at 08:41:48AM -0500, Jack Byer wrote: > > > The two examples you've listed are supported 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 > > > I don't believe that feature exist

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 10:46 AM, Kay Sievers wrote: > On Wed, Sep 8, 2010 at 15:41, Jack Byer wrote: >>> > The two examples you've listed are supported already. >>> >>> Jack, did you check EnvironmentFile=/etc/conf.d/xyz? >>> if this file defines ABC=123, then you can use ExecStart=/path/to/app $

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 >> managed by systemd that a

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Kay Sievers
On Wed, Sep 8, 2010 at 15:41, Jack Byer wrote: >> > The two examples you've listed are supported 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 >> > I don't believe that feature existed when I first

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Jack Byer
> > The two examples you've listed are supported 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 > I don't believe that feature existed when I first looked at systemd but it sounds like exactly what would

Re: Systemd port on custom embedded linux

2010-09-08 Thread Kay Sievers
On Wed, Sep 8, 2010 at 15:39, Cristian Axenie wrote: > I've managed to rebuild my kernel with the CONFIG_DEVTMPFS activated and now > the problem doesn't reproduces anymore. Now it seems that /sys/fs/cgroup > cannot be mounted. Any other known issues or other kernel config options to > be activate

Re: Systemd port on custom embedded linux

2010-09-08 Thread Cristian Axenie
I've managed to rebuild my kernel with the CONFIG_DEVTMPFS activated and now the problem doesn't reproduces anymore. Now it seems that /sys/fs/cgroup cannot be mounted. Any other known issues or other kernel config options to be activated ? Best ! On Wed, Sep 8, 2010 at 4:34 PM, Gustavo Sverzut B

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 10:31 AM, Matthew Miller wrote: > On Wed, Sep 08, 2010 at 08:28:09AM -0500, Jack Byer wrote: >> If you mean "no, there are no plans to support that" then please just say so >> plainly. > > The two examples you've listed are supported already. Jack, did you check Environment

Re: Systemd port on custom embedded linux

2010-09-08 Thread Kay Sievers
On Wed, Sep 8, 2010 at 15:34, Gustavo Sverzut Barbieri wrote: > On Wed, Sep 8, 2010 at 10:06 AM, Kay Sievers wrote: >>> After the compilation I've added init=/bin/systemd to my kernel boot line >>> and after freeing the init memory the system hangs with a "Failed to mount >>> /dev : No such devic

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Kay Sievers
On Wed, Sep 8, 2010 at 15:28, Jack Byer wrote: > If you mean "no, there are no plans to support that" then please just say so > plainly. I was just making fun of your question. How could anyone answer something like: "is it as flexible as"? You would need to come up with very specific problems to

Re: Systemd port on custom embedded linux

2010-09-08 Thread Gustavo Sverzut Barbieri
On Wed, Sep 8, 2010 at 10:06 AM, Kay Sievers wrote: >> After the compilation I've added init=/bin/systemd to my kernel boot line >> and after freeing the init memory the system hangs with a "Failed to mount >> /dev : No such device" message. > > You have CONFIG_DEVTMPFS=y in your kernel? BTW, if

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Matthew Miller
On Wed, Sep 08, 2010 at 08:28:09AM -0500, Jack Byer wrote: > If you mean "no, there are no plans to support that" then please just say so > plainly. The two examples you've listed are supported already. -- Matthew Miller mat...@mattdm.org _

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Jack Byer
If you mean "no, there are no plans to support that" then please just say so plainly. On Wed, Sep 8, 2010 at 8:25 AM, Kay Sievers wrote: > On Wed, Sep 8, 2010 at 14:40, Jack Byer wrote: > > Will systemd support the kind of flexibility that Gentoo provides with > the > > /etc/conf.d structure? >

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Kay Sievers
On Wed, Sep 8, 2010 at 14:40, Jack Byer wrote: > Will systemd support the kind of flexibility that Gentoo provides with the > /etc/conf.d structure? > > I can change the behavior of any file in /etc/init.d by editing or creating > a corresponding file in /etc/conf.d. Sometimes this configuration c

Re: Systemd port on custom embedded linux

2010-09-08 Thread Kay Sievers
On Wed, Sep 8, 2010 at 14:43, Cristian Axenie wrote: > I have some questions regarding some options to enable/disable when using > systemd on a custom embedded  Linux distro. I've managed to port systemd-8 > for a Tegra2 similar board, based on ARMv7 CPU. The embedded OS is a Fedora > like system

Re: [systemd-devel] Starting a script early in boot

2010-09-08 Thread Daniel Drake
On 7 September 2010 05:54, Lennart Poettering wrote: > > [Unit] > Description=OLPC Configuration > DefaultDependencies=no > After=sysinit.target local-fs.target > Before=base.target > > [Service] > Type=oneshot > ExecStart=/usr/bin/olpc-configure > > [Install] > WantedBy=base.target > I assume

Systemd port on custom embedded linux

2010-09-08 Thread Cristian Axenie
Hello all ! I have some questions regarding some options to enable/disable when using systemd on a custom embedded Linux distro. I've managed to port systemd-8 for a Tegra2 similar board, based on ARMv7 CPU. The embedded OS is a Fedora like system and I have used the systemd-8-1.fc14.src.rpm. Nex

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Jack Byer
Will systemd support the kind of flexibility that Gentoo provides with the /etc/conf.d structure? I can change the behavior of any file in /etc/init.d by editing or creating a corresponding file in /etc/conf.d. Sometimes this configuration can be quite extensive - modifying command-line parameters

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Kay Sievers
On Wed, Sep 8, 2010 at 07:04, 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. This means we better disa

Re: [systemd-devel] emergency vs. rescue

2010-09-08 Thread Lennart Poettering
On Tue, 07.09.10 13:18, Bill Nottingham (nott...@redhat.com) wrote: > > Lennart Poettering (lenn...@poettering.net) said: > > > It reads confusingly, in that if sysinit is 'Before' emergency, the > > > implication would be that if you enable emergency mode, sysinit would be > > > started before

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Reno Reckling
Am 08.09.2010 05:04, schrieb Michael Biebl: > Without knowing too much about Gentoo and simply looking at what the > Gentoo handbook has to say about Gentoo init scripts [1], > why don't you simply provide an /sbin/runscript implementation which > works with systemd? I have already done some rese

Re: Running a systemd-based Gentoo system

2010-09-08 Thread Fabian Henze
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 > managed by systemd that are up already. This means we better disable > sysv support