Re: libinit idea

2014-02-24 Thread Slawa Olhovchenkov
On Mon, Feb 24, 2014 at 10:00:57AM -0800, Don Lewis wrote: > I forgot to mention that the command line tools are feel cumbersome. To > restart a service: > FreeBSD: /etc/rc.d/foo restart service foo restart > Old Linux: /etc/init.d/foo restart service foo restart > Systemd

Re: libinit idea

2014-02-24 Thread Nikolai Lifanov
On 02/24/14 13:00, Don Lewis wrote: > On 24 Feb, Thomas Mueller wrote: >> from Don Lewis: >> >>> I've got a Fedora server here that has systemd and I've come to >>> dislike it. It seems to be one of those "Do not open. No user >>> serviceable parts inside." sorts of things. >> >>> I was never

Re: libinit idea

2014-02-24 Thread Don Lewis
On 23 Feb, David Chisnall wrote: > 5) In a world where we're moving towards sandboxing services via > Capsicum, the service launcher needs to be able to create services > with a potentially large set of initial file descriptors (including a > socket to Casper), based on the configuration policy.

Re: libinit idea

2014-02-24 Thread Don Lewis
On 24 Feb, Thomas Mueller wrote: > from Don Lewis: > >> I've got a Fedora server here that has systemd and I've come to >> dislike it. It seems to be one of those "Do not open. No user >> serviceable parts inside." sorts of things. > >> I was never able to get it to start NUT properly. > >

Re: libinit idea

2014-02-24 Thread Lucius Rizzo
* Don Lewis [2014-02-24 00:56]: > On 23 Feb, Lucius Rizzo wrote: > > * Andreas Nilsson [2014-02-23 09:33]: > >> Imho, the replacement to init and rc-scripts I sometimes think about > >> would be to import SMF from opensolaris/illumos. There one can at > >> least get the commands run and config us

Re: libinit idea

2014-02-24 Thread Christian Laursen
On 02/24/14 14:34, Andreas Nilsson wrote: On Mon, Feb 24, 2014 at 2:25 PM, Matthias Gamsjager wrote: How about delaying the startup of services that are not necessary right at the start. For example sshd, samba etc could be loaded after xdm ( or even after the DE has loaded). On my core i5 w

Re: libinit idea

2014-02-24 Thread Andreas Nilsson
On Mon, Feb 24, 2014 at 2:25 PM, Matthias Gamsjager wrote: > On Mon, Feb 24, 2014 at 2:15 PM, Bruno Lauzé wrote: > > > It's really good to read the comments and see people point of view on > this > > topic. > > I totally agree RC system is really good and stable, easy and extensible. > > The main

Re: libinit idea

2014-02-24 Thread David Chisnall
On 24 Feb 2014, at 13:25, Matthias Gamsjager wrote: > How about delaying the startup of services that are not necessary right at > the start. For example sshd, samba etc could be loaded after xdm ( or even > after the DE has loaded). It's a good idea, but it depends on a far more complex system

Re: libinit idea

2014-02-24 Thread Matthias Gamsjager
On Mon, Feb 24, 2014 at 2:15 PM, Bruno Lauzé wrote: > It's really good to read the comments and see people point of view on this > topic. > I totally agree RC system is really good and stable, easy and extensible. > The main concern I have here is performance. Starting a system is really > slow.

RE: libinit idea

2014-02-24 Thread Bruno Lauzé
just feel there's something to do to cut this delay. > Date: Sun, 23 Feb 2014 11:33:30 -0800 > From: list_free...@bluerosetech.com > To: fjwc...@gmail.com > Subject: Re: libinit idea > CC: freebsd-current@freebsd.org > > On 2/23/20

Re: libinit idea

2014-02-24 Thread Thomas Mueller
from Don Lewis: > I've got a Fedora server here that has systemd and I've come to dislike > it. It seems to be one of those "Do not open. No user serviceable > parts inside." sorts of things. > I was never able to get it to start NUT properly. > More often than not, it fails to come up mul

Re: libinit idea

2014-02-24 Thread Don Lewis
On 23 Feb, Lucius Rizzo wrote: > * Andreas Nilsson [2014-02-23 09:33]: >> Imho, the replacement to init and rc-scripts I sometimes think about >> would be to import SMF from opensolaris/illumos. There one can at >> least get the commands run and config used without looking at the >> source code. >

Re: libinit idea

2014-02-23 Thread Warner Losh
On Feb 23, 2014, at 11:17 AM, David Chisnall wrote: > On 23 Feb 2014, at 18:11, Allan Jude wrote: > >> sysrc solves this nicely, it is in base now, and is great for >> programmatically adding, removing and changing lines in rc.conf style >> files. It is also in ports for older versions of Free

Re: libinit idea

2014-02-23 Thread Allan Jude
On 2014-02-23 17:04, Warner Losh wrote: > > On Feb 23, 2014, at 11:17 AM, David Chisnall wrote: > >> On 23 Feb 2014, at 18:11, Allan Jude wrote: >> >>> sysrc solves this nicely, it is in base now, and is great for >>> programmatically adding, removing and changing lines in rc.conf style >>> fil

Re: Linux chasing (Was: libinit idea)

2014-02-23 Thread Joe Nosay
On Sun, Feb 23, 2014 at 3:50 PM, Lev Serebryakov wrote: > Hello, Freddie. > You wrote 23 февраля 2014 г., 22:31:48: > > FC> The main developer for systemd is very anti-portability and > anti-!Linux. He > FC> had actively rejected patches that made his projects work on non-Linux > FC> systems. In

Linux chasing (Was: libinit idea)

2014-02-23 Thread Lev Serebryakov
Hello, Freddie. You wrote 23 февраля 2014 г., 22:31:48: FC> The main developer for systemd is very anti-portability and anti-!Linux. He FC> had actively rejected patches that made his projects work on non-Linux FC> systems. In order to port systemd to a non-Linux system, he wants you to FC> first

RE: libinit idea

2014-02-23 Thread dteske
> -Original Message- > From: David Chisnall [mailto:thera...@freebsd.org] > Sent: Sunday, February 23, 2014 10:18 AM > To: Allan Jude > Cc: FreeBSD Current > Subject: Re: libinit idea > > On 23 Feb 2014, at 18:11, Allan Jude wrote: > > > sysrc solv

Re: libinit idea

2014-02-23 Thread Darren Pilgrim
On 2/23/2014 10:31 AM, Freddie Cash wrote: The main developer for systemd is very anti-portability and anti-!Linux. He had actively rejected patches that made his projects work on non-Linux systems. In order to port systemd to a non-Linux system, he wants you to first implement every Linux featur

Re: libinit idea

2014-02-23 Thread OutBackDingo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/23/2014 02:09 PM, Nikolai Lifanov wrote: > On 2014-02-23 13:47, David Chisnall wrote: >> On 23 Feb 2014, at 18:31, Freddie Cash >> wrote: >> >>> The main developer for systemd is very anti-portability and >>> anti-!Linux. He had actively rej

Re: libinit idea

2014-02-23 Thread Nikolai Lifanov
On 2014-02-23 13:47, David Chisnall wrote: On 23 Feb 2014, at 18:31, Freddie Cash wrote: The main developer for systemd is very anti-portability and anti-!Linux. He had actively rejected patches that made his projects work on non-Linux systems. In order to port systemd to a non-Linux system,

Re: libinit idea

2014-02-23 Thread David Chisnall
On 23 Feb 2014, at 18:31, Freddie Cash wrote: > The main developer for systemd is very anti-portability and anti-!Linux. He > had actively rejected patches that made his projects work on non-Linux > systems. In order to port systemd to a non-Linux system, he wants you to > first implement every L

Re: libinit idea

2014-02-23 Thread Nikolai Lifanov
On 2014-02-23 13:17, David Chisnall wrote: On 23 Feb 2014, at 18:11, Allan Jude wrote: sysrc solves this nicely, it is in base now, and is great for programmatically adding, removing and changing lines in rc.conf style files. It is also in ports for older versions of FreeBSD where it is not

Re: libinit idea

2014-02-23 Thread Freddie Cash
Typos and terseness brought to you by the LG G2 running SlimKat. On Feb 23, 2014 10:22 AM, "Lucius Rizzo" wrote: > > * Andreas Nilsson [2014-02-23 09:33]: > > Imho, the replacement to init and rc-scripts I sometimes think about > > would be to import SMF from opensolaris/illumos. There one can at

Re: libinit idea

2014-02-23 Thread Lucius Rizzo
* Andreas Nilsson [2014-02-23 09:33]: > Imho, the replacement to init and rc-scripts I sometimes think about > would be to import SMF from opensolaris/illumos. There one can at > least get the commands run and config used without looking at the > source code. I like SMF from Solaris 11 onwards an

Re: libinit idea

2014-02-23 Thread David Chisnall
On 23 Feb 2014, at 18:11, Allan Jude wrote: > sysrc solves this nicely, it is in base now, and is great for > programmatically adding, removing and changing lines in rc.conf style > files. It is also in ports for older versions of FreeBSD where it is not > in base. The problem is, there is no su

Re: libinit idea

2014-02-23 Thread Allan Jude
On 2014-02-23 04:12, David Chisnall wrote: > Hi Bruno, > > 3) It's easy for tools to add lines to rc.conf, it's hard to remove them. If > you're administering a large number of nodes, you want to be able to push out > updates to all, in a way that doesn't clobber local changes. Text file > pr

Re: libinit idea

2014-02-23 Thread David Chisnall
Hi Bruno, To preface this, I'd like to say that I do believe that FreeBSD does need a more modern init system. SMF on Solaris and Launchd on Darwin both have some advantages. These are what I see as the limitations in our current design (not in priority order): 1) Options are implicit. Beca

Re: libinit idea

2014-02-23 Thread Andreas Nilsson
On Sun, Feb 23, 2014 at 8:46 AM, Scot Hetzel wrote: > On Sat, Feb 22, 2014 at 5:54 PM, Bruno Lauzé wrote: > > https://github.com/brunolauze/libnit > > > > I know there's really big debate about init system but here's my > tentative to propose a new model to replace rc. > > > > Let's call it libi

Re: libinit idea

2014-02-22 Thread Scot Hetzel
On Sat, Feb 22, 2014 at 5:54 PM, Bruno Lauzé wrote: > https://github.com/brunolauze/libnit > > I know there's really big debate about init system but here's my tentative to > propose a new model to replace rc. > > Let's call it libinit but the name as no significance for now. > > I started coding

libinit idea

2014-02-22 Thread Bruno Lauzé
https://github.com/brunolauze/libnit I know there's really big debate about init system but here's my tentative to propose a new model to replace rc. Let's call it libinit but the name as no significance for now. I started coding a library with the following architecture. the main idea is to r