LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   SysV versuses BSD-Style (http://www.linuxquestions.org/questions/linux-general-1/sysv-versuses-bsd-style-55858/)

Artimus 04-19-2003 05:44 PM

SysV versuses BSD-Style
 
This question has been bugging me for a few weeks now. Why would a distro use SystemV Init scripts instead of BSD-Style?

Trying to edit SysV is overwhealming. BSD-Style is real simple. Is it speed or security or something? I can not see any advantages to using SystemV scripts instead of BSD-Style.

If you could enlighten me here, I'd appriciate it.

rch 05-03-2003 09:49 AM

Re: SysV versuses BSD-Style
 
Quote:

Originally posted by Artimus
This question has been bugging me for a few weeks now. Why would a distro use SystemV Init scripts instead of BSD-Style?

Trying to edit SysV is overwhealming. BSD-Style is real simple. Is it speed or security or something? I can not see any advantages to using SystemV scripts instead of BSD-Style.

If you could enlighten me here, I'd appriciate it.

System V init has become the standard in the Linux world to control the startup of software at boot time. This is because it is easier to use and more powerful and flexible than the traditional BSD init.
The init binary is located in /sbin and not /etc. This is important as one might try and upgrade a machine to System V init without re-installing and reformatting.Linux checks /etc for its init.
SysV init also differs from BSD init in that the config files are in a subdirectory of /etc instead of residing directly in /etc. This directory is called rc.d. In there you will find rc.sysinit and the following directories such as rcx.d init.d
Good news for you though :Slackware uses BSD style init.
So if you are so comfortable with BSD you could try Slackware(on last count they were using BSD ;don't blame me if they have switched to SysV)
for a good comparision of BSD and SystemV
http://www.linuxsa.org.au/meetings/1...init/init.html

ghostdancer 05-03-2003 10:34 PM

Someone want to start a flame war??

IMHO, is just depend on the individual preferences...

rch 05-03-2003 11:37 PM

Quote:

Originally posted by ghostdancer
Someone want to start a flame war??

IMHO, is just depend on the individual preferences...

no flame wars here
just telling what i think

Artimus 05-04-2003 10:09 PM

I think you missed my point, rch. I wanted to know why SysV is better, not what SysV is. I'm already using Slackware, by the way. The points you've brought up:

Easier to use:
Easier to use? Are you crazy? BSD-Style are simple sh scripts, while SysV uses symlinks and priorities...

Powerful/Flexable:
Could you give me a reasonable example(a.k.a not IBM's mainframe or something) of how they can do something that BSD-style can't.

Upgrading to SysV:
Why the heck would I do that? I made a big speech asking why nearly all Linux distros seem to use SysV scripts.

Edit: MODS: If this gets into a huge flame war, please close it.

rshaw 05-04-2003 10:44 PM

http://linuxtipps.sourceforge.net/sh.../en/faq/56.htm

rch 05-05-2003 12:25 AM

Artimus:The above link by rshaw answers almost all the questions.
I have to agree that SysV has its advantages along with its disadvantages.
Well it is easier to use BSD but do you want to kill the services with ps -aux|grep blah
and then killing the pid instead of a
easier :service blah stop/star/reload/etc
You must agree with me that it would be easier for the end user.
as for those who write the init scipts using BSD will mean less work
But you must agree with me that SysV provides better flexibility.
I hope that this is the end of the discussion.

Artimus 05-05-2003 07:44 AM

Thank you, THAT was what I was looking for. It also made a lot more sense of the Szzz junk.

rch 05-05-2003 10:23 AM

Quote:

It also made a lot more sense of the Szzz junk.
Plzzzzz not again!

Artimus 05-05-2003 05:50 PM

I ment like S10Apache or S5Bind or something...

darthaxul 06-26-2012 12:15 AM

runner
 
There is no real difference. It's just moved to sysV because just like with developers on apache and xorg, if somone wanted to modify the configuration it's easier to see the change on a separate smaller 20 line file rather than some massive 2000 line config file. But the issue with sysV is that when you need to troubleshoot something it is a complete disaster. Not only is it a waste of hard drive space, there is more "snooping" to find the "correct" config file, then save it to the "correct" locations. There is no advantage to the sysV, some may claim otherwise but that was back in the day when bsd init was young. All said when the dust settles and the air clears BSD init style scripts are just the future of any linux distro.


All times are GMT -5. The time now is 11:41 AM.