SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Truly I don't know. For me seems questions are not precise. Do OP means 'init' script - script which is marked as 'do not touch at any circumstances' - so I don't even tried to look carefully what is inside. If this is the case: I don't know where the init script comes from, UNIX or BSD. Or OP means scripts put in /etc/rc.d/. Running levels. etc. OpenBSD as I remember is using sysctl command to run or stop service. In Slackware I'm just switching chmod +/- rc.'service' to enable or disable the service. I don't know maybe that solution is just as well very unique to Slackware. Where this comes from? Good question to ask the creator of Slackware.
Let's not derail this thread into another discussion about systemd, please. That's not what I asked for.
To stay on-topic I think its somewhat misleading to consider the Slackware init as a BSD or sysv init. Its very possible to run Slackware without a single sysv init script and while you can draw comparisons between /etc/rc.d/ and various BSD styled inits they aren't really the same thing and the similarities are mostly superficial. Personally I think the Slackware init is of a higher quality than the init in an OS like Freebsd.
Distribution: Slackware/Salix while testing others
Posts: 1,718
Rep:
Poll is not accurate, choices are not clear. As mentioned already there are more than one BSD init, Slackware is BSD like init, did not see that option.
Poll is not accurate, choices are not clear. As mentioned already there are more than one BSD init
As previously stated on the first page:
Quote:
Originally Posted by TommyC7
... something like what the Wikipedia page describes for newer versions of {Net,Free}BSD (which, in my opinion, is similar to Slackware's organization of it).
Quote:
..., Slackware is BSD like init, did not see that option.
As previously stated on the first post:
Quote:
1. Which do you think Slackware's init system more closely represents (SysV or BSD)?
2. Which do you prefer?
The answer to #1 is the first option in the poll, and the answer to #2 is the second option in the poll, hence the 4 options.
So we know your answer to #1 at least (i.e. if you do choose to vote, options 3 or 4 are what you'd probably pick).
Slackware's heritage for init is clearly BSD, with an added framework for external packages that expect SysV-style init support. However, support has grown over the years for separate scripts for particular services, e.g. MariaDB, ntpd, network, containers, mail routing. It doesn't use the "service start/stop/status/restart" lingo from SysV, but it's still in the same vein of "a little work now saves lots of work later."
I've learned to use both frameworks, and I see the validity in both approaches, so I don't really have a preference.
I watched this keynote on the tube, it's mostly about attempting to port systemd features into FreeBSD (which has a huge repository of similar attempts already).
It's probably not going to happen on NetBSD anytime soon. And Slackware already has a fork which integrates it, so if it comes down to that; it will most certainly have one which disintegrates it.
Additionally, I don't think injecting an exploitable layer between kernel and userspace is a good idea, but it's good to have options for those in need.
They say the Slackware uses a BSD-style init... but, having experimented with many of the *BSDs, my thought is that they're not even close.
IMNSHO, Slackware's init is what a BSD-style init could be if it grew up.
If you do this in stock Slackware:
Code:
# chmod +x /etc/rc.d/rc.sysvinit
you will have the ability to install packages that require SysV init, and they will properly work along side the already installed "BSD-style" scripts with no further intervention.
That is a truly great feature of Slackware.
For software that needs an init script, it is not easy to package "BSD-style" init scripts. On the other hand, it is trivially easy to do so with SysV init style scripts. All you need are a couple of symlinks, and it works with no further intervention. No need to manually edit anything; just put the right file in the right place and it works.
I don't believe Slackware's init is as easily defined as many people seem to believe it is. It is a "hybrid" system built for convenience from common sense.
Don't know a lot about Slackware but I understand that it uses BSD init. When it comes to preferences, I say BSD every time. It boots much faster and it uses a few simple scripts, not a battery of complex ones. Sysv init requires a whole directory of links for each run level, whereas bsd init requires only one script file per run level. I use bsd init on my LFS system, although that's not what the book recommends. And my Crux system uses it too.
Much more eloquently expressed than my reply on this thread.
If Slackware did not provide a hybrid system, I couldn't use it without a lot of scary and fragile kludges because I am a long time VMWare User and VMWare expects a SysV Init System.
Thanks again.
-- kjh( Poll: does a pomegranate more closely represent an apple or an orange ? )
i voted sysV/sysV wrongfully
Slackware uses the most convenient init system I encountered yet
Noted. So what should I mark you down for?
Quote:
Originally Posted by rkelsen
I don't believe Slackware's init is as easily defined as many people seem to believe it is. It is a "hybrid" system built for convenience from common sense.
I voted bsd/sysv. I consider Slackware to be BSD oriented. It has run levels but, at least on my system, they are empty.
I slightly prefer sysv since you just drop an rc file in place and it is automagically run at boot time. I find with Slackware/BSD I have to put too much in rc.local.
But this is just a quibble. I am perfectly happy with the Slackware init system... unlike some others that Shall Not Be Named.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.