LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-19-2003, 04:44 PM   #1
Artimus
Member
 
Registered: Feb 2003
Location: Wisconsin
Distribution: Slackware
Posts: 188

Rep: Reputation: 30
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.
 
Old 05-03-2003, 08:49 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
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
 
Old 05-03-2003, 09:34 PM   #3
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Someone want to start a flame war??

IMHO, is just depend on the individual preferences...
 
Old 05-03-2003, 10:37 PM   #4
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
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
 
Old 05-04-2003, 09:09 PM   #5
Artimus
Member
 
Registered: Feb 2003
Location: Wisconsin
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 30
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.
 
Old 05-04-2003, 09:44 PM   #6
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,692

Rep: Reputation: 45
http://linuxtipps.sourceforge.net/sh.../en/faq/56.htm
 
Old 05-04-2003, 11:25 PM   #7
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
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.

Last edited by rch; 05-04-2003 at 11:28 PM.
 
Old 05-05-2003, 06:44 AM   #8
Artimus
Member
 
Registered: Feb 2003
Location: Wisconsin
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 30
Thank you, THAT was what I was looking for. It also made a lot more sense of the Szzz junk.
 
Old 05-05-2003, 09:23 AM   #9
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Quote:
It also made a lot more sense of the Szzz junk.
Plzzzzz not again!
 
Old 05-05-2003, 04:50 PM   #10
Artimus
Member
 
Registered: Feb 2003
Location: Wisconsin
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 30
I ment like S10Apache or S5Bind or something...
 
Old 06-25-2012, 11:15 PM   #11
darthaxul
Member
 
Registered: Aug 2008
Distribution: Devuan; Gentoo; FreeBSD
Posts: 236

Rep: Reputation: 19
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.
 
Old 04-04-2015, 02:22 PM   #12
jon_perez
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Rep: Reputation: 0
Quote:
Originally Posted by rch View Post
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
Uhhh... what are you talking about?

In Slackware, you can just do /etc/rc.d/rc.httpd start | stop | restart
no need for ps -aux|grep blah

Quote:
Originally Posted by darthaxul View Post
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.
Hear, hear.

The much simpler and easier to understand and deal with BSD style init is one of the things that make me love Slackware.

Last edited by jon_perez; 04-04-2015 at 02:25 PM.
 
Old 04-04-2015, 02:41 PM   #13
Germany_chris
Senior Member
 
Registered: Jun 2011
Location: NOVA
Distribution: Debian 12
Posts: 1,071

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
Quote:
Originally Posted by jon_perez View Post
Uhhh... what are you talking about?

In Slackware, you can just do /etc/rc.d/rc.httpd start | stop | restart
no need for ps -aux|grep blah



Hear, hear.

The much simpler and easier to understand and deal with BSD style init is one of the things that make me love Slackware.
The first post you quoted is 12 years old, the second is 3.
 
Old 04-07-2015, 05:33 AM   #14
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,918

Rep: Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035
Quote:
Originally Posted by jon_perez View Post
Uhhh... what are you talking about?

In Slackware, you can just do /etc/rc.d/rc.httpd start | stop | restart
no need for ps -aux|grep blah
People often say that Slackware uses BSD style initscripts, but it really doesn't. Slackware's approach is more of a hybrid of sysvinit's /etc/init.d/ scripts, combined with BSD's sequential rc file. It just leaves off all that sysv runlevel symlink stuff that almost no one uses and which IMHO just serves to overcomplicate sysvinit.

Original BSD didn't have the "rc.something start | stop | restart" mechanism. If you wanted to stop something, you had to do it manually by issuing its stop command -- if it had one -- or sending its pid a hup/term/kill signal. If you wanted to restart it, you'd have to look in /etc/rc to find the correct command(s) to start it (unless you knew them by heart).

Anyway, as Chris says: years old thread, and even less relevant today thanks to systemd (for good or bad -- which I'm not going to get into).
 
1 members found this post helpful.
Old 04-14-2015, 04:00 PM   #15
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Systemd is the best! bring on needlessly complicated boot sequences! To be honest, unless someone's building a distro from scratch, a user has to use whatever the vendor chooses for him. Doesn't really matter which one is better.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which distros use BSD-style layout for initialization files, and which System V's? kornerr Linux - General 5 06-11-2005 08:27 PM
VIM-style wrapping to OpenOffice style schmmd Linux - Software 1 12-21-2004 06:50 PM
BSD vs SysV R3ctor *BSD 2 01-27-2004 02:42 PM
sysV vs bsd starting scripts sqn Linux From Scratch 3 06-16-2002 01:42 AM
SysV vs BSD-like gui10 Linux - General 0 12-29-2001 12:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration