Re: libinit idea

2014-02-24 Thread Don Lewis
On 23 Feb, Lucius Rizzo wrote: * Andreas Nilsson andrn...@gmail.com [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

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

RE: libinit idea

2014-02-24 Thread Bruno Lauzé
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/2014 10:31 AM, Freddie Cash wrote

Re: libinit idea

2014-02-24 Thread Matthias Gamsjager
On Mon, Feb 24, 2014 at 2:15 PM, Bruno Lauzé brunola...@msn.com 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

Re: libinit idea

2014-02-24 Thread David Chisnall
On 24 Feb 2014, at 13:25, Matthias Gamsjager mgamsja...@gmail.com 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

Re: libinit idea

2014-02-24 Thread Andreas Nilsson
On Mon, Feb 24, 2014 at 2:25 PM, Matthias Gamsjager mgamsja...@gmail.comwrote: On Mon, Feb 24, 2014 at 2:15 PM, Bruno Lauzé brunola...@msn.com 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,

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 mgamsja...@gmail.comwrote: 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

Re: libinit idea

2014-02-24 Thread Lucius Rizzo
* Don Lewis truck...@freebsd.org [2014-02-24 00:56]: On 23 Feb, Lucius Rizzo wrote: * Andreas Nilsson andrn...@gmail.com [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

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. More often

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

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 able to get it to

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-23 Thread Andreas Nilsson
On Sun, Feb 23, 2014 at 8:46 AM, Scot Hetzel swhet...@gmail.com wrote: On Sat, Feb 22, 2014 at 5:54 PM, Bruno Lauzé brunola...@msn.com 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

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.

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

Re: libinit idea

2014-02-23 Thread David Chisnall
On 23 Feb 2014, at 18:11, Allan Jude free...@allanjude.com 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

Re: libinit idea

2014-02-23 Thread Lucius Rizzo
* Andreas Nilsson andrn...@gmail.com [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

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 lucius.ri...@lucius.xxx wrote: * Andreas Nilsson andrn...@gmail.com [2014-02-23 09:33]: Imho, the replacement to init and rc-scripts I sometimes think about would be to import SMF from

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 free...@allanjude.com 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

Re: libinit idea

2014-02-23 Thread David Chisnall
On 23 Feb 2014, at 18:31, Freddie Cash fjwc...@gmail.com 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

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 fjwc...@gmail.com 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

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 fjwc...@gmail.com wrote: The main developer for systemd is very anti-portability and anti-!Linux. He had

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

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 free...@allanjude.com wrote: sysrc solves this nicely

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: Linux chasing (Was: libinit idea)

2014-02-23 Thread Joe Nosay
On Sun, Feb 23, 2014 at 3:50 PM, Lev Serebryakov l...@freebsd.org 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

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 thera...@freebsd.org wrote: On 23 Feb 2014, at 18:11, Allan Jude free...@allanjude.com wrote: sysrc solves this nicely, it is in base now, and is great for programmatically adding, removing and changing

Re: libinit idea

2014-02-23 Thread Warner Losh
On Feb 23, 2014, at 11:17 AM, David Chisnall thera...@freebsd.org wrote: On 23 Feb 2014, at 18:11, Allan Jude free...@allanjude.com 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

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

Re: libinit idea

2014-02-22 Thread Scot Hetzel
On Sat, Feb 22, 2014 at 5:54 PM, Bruno Lauzé brunola...@msn.com 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