You are not logged in.

#1 2006-10-14 01:27:07

yankees26
Member
From: Connecticut, USA
Registered: 2006-09-29
Posts: 190

init system, which is arch?

I can't tell which init system Arch uses, is it considered System V or BSD-style?  Could someone shed some light about this?

Offline

#2 2006-10-14 01:36:06

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: init system, which is arch?

BSD Style (short and sweet answer big_smile )

Offline

#3 2006-10-14 02:07:16

yankees26
Member
From: Connecticut, USA
Registered: 2006-09-29
Posts: 190

Re: init system, which is arch?

Ok, because when I read the article about init in wikipedia it said that System V looks at /etc/inittab, which is used in Arch, so I get kind of confused.

Offline

#4 2006-10-14 02:57:24

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: init system, which is arch?

Pretty much every distro uses SystemV init, however, there are two styles of initscripts, BSD and SystemV. Arch uses BSD style init scripts with SystemV as the init system. How's that for confusing?


·¬»· i am shadowhand, powered by webfaction

Offline

#5 2006-10-14 04:12:43

1c3d0g
Member
Registered: 2006-07-05
Posts: 81

Re: init system, which is arch?

So which one does it use after all? lol

:-P

Offline

#6 2006-10-14 08:17:08

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: init system, which is arch?

Both. SysV is the init system. Think of it as the engine. BSD is the init script style. Think of that as the car. Does that analogy work for you?

Offline

#7 2006-10-14 11:22:06

yankees26
Member
From: Connecticut, USA
Registered: 2006-09-29
Posts: 190

Re: init system, which is arch?

That analogy works for me.

Offline

#8 2006-10-15 03:36:41

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: init system, which is arch?

deficite wrote:

Both. SysV is the init system. Think of it as the engine. BSD is the init script style. Think of that as the car. Does that analogy work for you?

Good anology.
deficite++


·¬»· i am shadowhand, powered by webfaction

Offline

#9 2006-10-15 14:06:53

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 430

Re: init system, which is arch?

If we are already talking about the init system, what about initng. Is it well known to our devs and has anybody of you tested it already?

Offline

#10 2006-10-15 14:46:57

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: init system, which is arch?


1000

Offline

#11 2006-10-15 22:32:04

jakob
Member
From: Berlin
Registered: 2005-10-27
Posts: 430

Re: init system, which is arch?

byte: i will remember the search next time before posting *lol*

Offline

#12 2006-10-15 22:35:33

twiistedkaos
Member
Registered: 2006-05-20
Posts: 666

Re: init system, which is arch?

Hmm didn't the devs say one time that initng would actually slow down the arch system boot instead of speed it up? Correct me if I am wrong.

Offline

#13 2006-10-15 23:08:38

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: init system, which is arch?

twiistedkaos wrote:

Hmm didn't the devs say one time that initng would actually slow down the arch system boot instead of speed it up? Correct me if I am wrong.

Generally speaking, it probably would. initng and the various other new init systems are pretty much "solving" a problem that doesn't exist in Arch, due to Arch's very simple (and effective) BSD style init system. Because we've removed "run levels" from the init system, and can already background daemons, we have no need for an init replacement.


·¬»· i am shadowhand, powered by webfaction

Offline

#14 2006-10-16 06:40:31

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: init system, which is arch?

shadowhand wrote:

Generally speaking, it probably would. initng and the various other new init systems are pretty much "solving" a problem that doesn't exist in Arch, due to Arch's very simple (and effective) BSD style init system. Because we've removed "run levels" from the init system, and can already background daemons, we have no need for an init replacement.

not quite, we still do have runlevels, we just utilise them differently.
0) shutdown
1) single user mode
3) text mode
5) x11 (take a look in /etc/inittab, there's XDM there - we boot to 3 by default)
6) reboot

in most cases, people just chuck their display manager in their DAEMONS line and ignore init 5, but a while back, display managers wouldnt work in the daemon line and you had to inittab them.

James

Offline

#15 2006-10-16 07:10:44

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: init system, which is arch?

iphitus wrote:

not quite, we still do have runlevels, we just utilise them differently.

Ah, right, by runlevels I mean runlevels like most other distros have, rc.2, rc.3, rc.8, etc (like you see in Fedora, Debian, etc) where each runlevel can change which daemons are running. (I always thought this was irritating and pointless, and I was overjoyed when I found out that Arch didn't use runlevels like this.)


·¬»· i am shadowhand, powered by webfaction

Offline

#16 2006-10-16 13:00:20

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: init system, which is arch?

at first i thought this was a bad thing, considering we lacked many runlevels available to other distros.

but after running arch on my desktop/laptop, and putting up ubuntu on the server at work, i don't think i've ever had to use more than 3 runlevels...

1 for reboot (which doesn't really count methinks...)
1 for single root user
1 for regular system

Offline

#17 2006-10-16 14:46:25

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: init system, which is arch?

shadowhand wrote:
twiistedkaos wrote:

Hmm didn't the devs say one time that initng would actually slow down the arch system boot instead of speed it up? Correct me if I am wrong.

Generally speaking, it probably would. initng and the various other new init systems are pretty much "solving" a problem that doesn't exist in Arch, due to Arch's very simple (and effective) BSD style init system. Because we've removed "run levels" from the init system, and can already background daemons, we have no need for an init replacement.

Also, arch init scripts do no dependancy checking.  initng just uses a mess of scripts and calculates the order to run them on boot.

Offline

#18 2006-10-16 17:29:44

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: init system, which is arch?

phrakture wrote:
shadowhand wrote:
twiistedkaos wrote:

Hmm didn't the devs say one time that initng would actually slow down the arch system boot instead of speed it up? Correct me if I am wrong.

Generally speaking, it probably would. initng and the various other new init systems are pretty much "solving" a problem that doesn't exist in Arch, due to Arch's very simple (and effective) BSD style init system. Because we've removed "run levels" from the init system, and can already background daemons, we have no need for an init replacement.

Also, arch init scripts do no dependancy checking.  initng just uses a mess of scripts and calculates the order to run them on boot.

Well, hal does check if dbus is loaded. If not, de hal rc-script will load it for you.

Offline

#19 2006-10-16 22:25:17

hypermegachi
Member
Registered: 2004-07-25
Posts: 311

Re: init system, which is arch?

LB06 wrote:
phrakture wrote:

Also, arch init scripts do no dependancy checking.  initng just uses a mess of scripts and calculates the order to run them on boot.

Well, hal does check if dbus is loaded. If not, de hal rc-script will load it for you.

i believe portmap and fam have a similar relationship

Offline

#20 2006-10-16 22:35:31

baze
Member
Registered: 2005-10-30
Posts: 393

Re: init system, which is arch?

if upstart turns out to be working good, is it possible arch might switch? it might not be faster than arch's current use of initscripts but the new way upstart is going is really interesting, imho.

Offline

#21 2006-10-16 23:03:20

shadowhand
Member
From: MN, USA
Registered: 2004-02-19
Posts: 1,142
Website

Re: init system, which is arch?

baze wrote:

if upstart turns out to be working good, is it possible arch might switch? it might not be faster than arch's current use of initscripts but the new way upstart is going is really interesting, imho.

I agree, upstart seems to be best of the "new breed" init systems.


·¬»· i am shadowhand, powered by webfaction

Offline

#22 2006-10-16 23:43:47

LB06
Member
From: The Netherlands
Registered: 2003-10-29
Posts: 435

Re: init system, which is arch?

hypermegachi wrote:
LB06 wrote:
phrakture wrote:

Also, arch init scripts do no dependancy checking.  initng just uses a mess of scripts and calculates the order to run them on boot.

Well, hal does check if dbus is loaded. If not, de hal rc-script will load it for you.

i believe portmap and fam have a similar relationship

On a sidenote: not that I do not find it handy. On the contrary.

In the past situation when Arch didn't have this kind of "dep checking", dbus could be a huge bottleneck in terms of bootup performance. I mean, it wasn't possible to background dbus, because hal requires dbus to be started prior to it. So if dbus would take 5 seconds to start, bootup time would be increased by 5+ seconds.

In the current situation, however, you can just background hal and leave dbus out. Both daemons will now load in background, in seqential order. It basically follows the idea of someone on this forum who requested parenthesis to be made possible in the daemons array. Like ... @(dbus hal) ...

Offline

Board footer

Powered by FluxBB