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: 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

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

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 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: 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 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: 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 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 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: 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: 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: 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 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 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 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 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 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 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: [systemd-devel] Running a systemd-based Gentoo system

2010-09-13 Thread Lennart Poettering
On Wed, 08.09.10 10:37, Gustavo Sverzut Barbieri (barbi...@profusion.mobi) wrote: > > 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 > >

Re: [systemd-devel] Running a systemd-based Gentoo system

2010-09-13 Thread Lennart Poettering
On Wed, 08.09.10 08:41, Jack Byer (ftn...@gmail.com) 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

Re: [systemd-devel] Running a systemd-based Gentoo system

2010-09-13 Thread Lennart Poettering
On Wed, 08.09.10 15:45, Tomasz Torcz (to...@pipebreaker.pl) wrote: > 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 yo