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. This means we better di

Re: Running a systemd-based Gentoo system

2010-09-07 Thread Michael Biebl
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 disable > sysv support there (more on this later). Not sure

[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

Running a systemd-based Gentoo system

2010-09-07 Thread Gustavo Sverzut Barbieri
Hi all, I'm a gentoo user previously using openrc-0.6.3 and baselayout-2, but given the promising future of systemd and the not-so-promising future for openrc, I'm willing to help with Gentoo support. So first things first, I needed to move my system and although http://en.gentoo-wiki.com/w/index

Re: [PATCH] units: On Debian Runlevel 2, 3, 4 and 5 are multi-user

2010-09-07 Thread Lennart Poettering
On Tue, 07.09.10 20:07, Michael Biebl (mbi...@gmail.com) wrote: > On Debian there is no distinction by default between runlevels 2-5 > > The attached patch accounts for that. Thanks! Applied! Lennart -- Lennart Poettering - Red Hat, Inc. ___ systemd

Re: [systemd-devel] Debian patches, typo fixes

2010-09-07 Thread Lennart Poettering
On Tue, 07.09.10 19:49, Michael Biebl (mbi...@gmail.com) wrote: > 2010/9/7 Lennart Poettering : > >> +StandardInput=tty > > > > It's probably smart to remove the StandardInput=tty lines from all these > > units, as this might create a problem if some process continues running > > that owns the con

Re: [PATCH] units: On Debian Runlevel 2, 3, 4 and 5 are multi-user

2010-09-07 Thread Michael Biebl
2010/9/7 Michael Biebl : > On Debian there is no distinction by default between runlevels 2-5 > > The attached patch accounts for that. Forgot to add, that this patch must be applied on top of 0001-units-add-umount-unit-files-for-Debian.patch -- Why is it that all of the instruments seeking inte

[PATCH] units: On Debian Runlevel 2, 3, 4 and 5 are multi-user

2010-09-07 Thread Michael Biebl
On Debian there is no distinction by default between runlevels 2-5 The attached patch accounts for that. The patch is based on http://git.err.no/cgi-bin/gitweb.cgi?p=systemd;a=blob;f=units/multi-user.target.m4;h=bbb5224f2b18be755fe4371ca5b024b29e7fce3b;hb=cf586269a3a738275d31cf24403f94ca0946ecfb

Re: [systemd-devel] Debian patches, typo fixes

2010-09-07 Thread Michael Biebl
2010/9/7 Lennart Poettering : >> +StandardInput=tty > > It's probably smart to remove the StandardInput=tty lines from all these > units, as this might create a problem if some process continues running > that owns the console (e.g. a left-over getty or so). Because in this > case these units will

Re: [systemd-devel] emergency vs. rescue

2010-09-07 Thread Bill Nottingham
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 it. It isn't, as the dependency isn't there. > > sysinit.target has a Conflicts

Re: [systemd-devel] emergency vs. rescue

2010-09-07 Thread Lennart Poettering
On Tue, 07.09.10 12:41, Bill Nottingham (nott...@redhat.com) wrote: > > Lennart Poettering (lenn...@poettering.net) said: > > And I hope this is not too confusing... > > It reads confusingly, in that if sysinit is 'Before' emergency, the > implication would be that if you enable emergency mode,

Re: [systemd-devel] emergency vs. rescue

2010-09-07 Thread Bill Nottingham
Lennart Poettering (lenn...@poettering.net) said: > And I hope this is not too confusing... 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 it. It isn't, as the dependency isn't there. Two

Re: [systemd-devel] emergency vs. rescue

2010-09-07 Thread Lennart Poettering
On Tue, 07.09.10 12:09, Bill Nottingham (nott...@redhat.com) wrote: > > Lennart Poettering (lenn...@poettering.net) said: > > In systemd, "emergency" is little more than an equivalent to > > init=/bin/sh on the kernel command like. i.e. you get a shell > > Not as it's currently configured. sysi

Re: [systemd-devel] emergency vs. rescue

2010-09-07 Thread Bill Nottingham
Lennart Poettering (lenn...@poettering.net) said: > In systemd, "emergency" is little more than an equivalent to > init=/bin/sh on the kernel command like. i.e. you get a shell Not as it's currently configured. sysinit.service has 'Before' on it. Is that not intentional? Bill ___

Re: prettify systemctl output

2010-09-07 Thread Zbyszek Szmek
On Tue, Sep 07, 2010 at 08:40:41AM -0400, Matthew Miller wrote: > On Tue, Sep 07, 2010 at 10:30:49AM +0200, Zbigniew Jędrzejewski-Szmek wrote: > > Those are some very simple patches to improve systemctl job-list output. > > - Make systemctl output greppable by defaulting to --full if not > > writ

[PATCH 2/4 corrected] systemctl: split job list writing to a seperate function

2010-09-07 Thread Zbigniew Jędrzejewski-Szmek
--- src/systemctl.c | 155 --- 1 files changed, 78 insertions(+), 77 deletions(-) diff --git a/src/systemctl.c b/src/systemctl.c index 004d28e..cb86907 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -251,12 +251,88 @@ static int compare_

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

2010-09-07 Thread Lennart Poettering
On Mon, 06.09.10 19:44, Daniel Drake (d...@laptop.org) wrote: heya, > After reading the systemd man pages, I believe I want it to start > after basic.target has fully started up, but before anything in > multi-user.target starts. And I want everything in multi-user.target > to await the completio

Re: [systemd-devel] Debian patches, typo fixes

2010-09-07 Thread Lennart Poettering
On Mon, 06.09.10 06:52, Michael Biebl (mbi...@gmail.com) wrote: > +[Unit] > +Description=Turn off swap and umount all local file systems > +DefaultDependencies=no > +After=killall.service > +Before=reboot.service poweroff.service halt.service umountroot.service > + > +[Service] > +Type=oneshot > +

[PATCH 4/4] systemctl: default to --full if stdout is not tty

2010-09-07 Thread Zbigniew Jędrzejewski-Szmek
Closes https://bugzilla.redhat.com/show_bug.cgi?id=626891 and duplicate https://bugs.freedesktop.org/show_bug.cgi?id=29916. --- src/systemctl.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/systemctl.c b/src/systemctl.c index 0832dfa..3c4dc91 100644 --- a/src/system

[PATCH 1/4] systemctl: use on_tty() helper everywhere

2010-09-07 Thread Zbigniew Jędrzejewski-Szmek
--- src/systemctl.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/systemctl.c b/src/systemctl.c index 627b905..004d28e 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -337,7 +337,7 @@ static int list_units(DBusConnection *bus, char **args, unsigned n) {

[PATCH 3/4] systemctl: limit some column widths to widest actually used

2010-09-07 Thread Zbigniew Jędrzejewski-Szmek
old UNIT LOAD ACTIVE SUBJOB dev-hugepages.automount loaded active running Huge Page dev-mqueue.automount loaded active waiting POSIX Mes proc-sys...misc.automount loaded active

prettify systemctl output

2010-09-07 Thread Zbigniew Jędrzejewski-Szmek
Those are some very simple patches to improve systemctl job-list output. - Make systemctl output greppable by defaulting to --full if not writing to a tty. - Squeeze columns to make better use of available space. Apart from formatting, nothing should change. _

[PATCH] build: disable compile warnings from vala code

2010-09-07 Thread Zbigniew Jędrzejewski-Szmek
In the sprit of https://bugs.freedesktop.org/show_bug.cgi?id=28093. Short version: use DEFAULT_CFLAGS to store detected cflags, not CFLAGS. Add -Wno-sign-compare and -Wno-strict-prototypes to vala code. Long version: Previously, CFLAGS was used to store default compile options. Automake manual go

[PATCH 2/4] systemctl: split job list writing to a seperate function

2010-09-07 Thread Zbigniew Jędrzejewski-Szmek
--- src/systemctl.c | 155 --- 1 files changed, 78 insertions(+), 77 deletions(-) diff --git a/src/systemctl.c b/src/systemctl.c index 004d28e..cb86907 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -251,12 +251,88 @@ static int compare_