LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


View Poll Results: I want the next Slackware init system to be:
Finit 2 1.31%
runit 10 6.54%
OpenRC 16 10.46%
s6 4 2.61%
monit 0 0%
Upstart 1 0.65%
perp 1 0.65%
supervisord 0 0%
GNU dmd 0 0%
systemd 17 11.11%
Other 102 66.67%
Voters: 153. You may not vote on this poll

Reply
  Search this Thread
Old 09-24-2014, 04:56 PM   #46
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097

Service supervision is where a daemon takes charge of a service, and should the service stop without user provocation, the service is restarted along with any logging of that service if configured for the service. If the user does stop the service then the service stays "down" until the user bring it "up" again, or the system is restarted. However, if the service script is not available or executable, the service is not started.

However, even by that definition, it's a fickle argument that we need service supervision that badly.

Last edited by ReaperX7; 09-24-2014 at 05:01 PM.
 
3 members found this post helpful.
Old 09-24-2014, 04:56 PM   #47
skarnet
LQ Newbie
 
Registered: Jun 2014
Location: Dublin, Ireland
Distribution: self-built
Posts: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by Arkerless View Post
With all due respect I think you are missing something here; to wit, that the reason for much of the opposition to systemd is precisely because being 'featureful' is NOT a good thing in an init system.

To the degree the features provided are good they can be implemented outside of the init system.
Well, yes, that is precisely my point. I did not imply that every feature of systemd needs to be in the init system, far from it, and I do not plan to reimplement everything in the same package.
It stands nonetheless that the features of systemd are the reason why it got adopted so widely, and similar features, albeit organized differently (and correctly implemented this time), need to be provided if we are to compete; and I need to know what is important for distributions.
 
Old 09-24-2014, 05:08 PM   #48
skarnet
LQ Newbie
 
Registered: Jun 2014
Location: Dublin, Ireland
Distribution: self-built
Posts: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
I have struggled a little with the scope of this term. I see it used frequently and it seems to be one of those terms that everyone "just knows what it means"...

But in reading docs (runit for example) and searching for a concrete definition, I come up somewhat empty. Some uses seem to limit to the obvious function of monitoring and restarting daemons automatically, other d's imply or include much more.

The word "service" itself, correctly or not, I have tended to think of as both a Microsoft-ism and a RedHat-ism, a marketing term that blurs the historical uses of daemon, process, etc... Admittedly, that may be simply an artifact of my particular experience-path, but it seems pretty well founded.

So, please pardon my own ignorance if necessary, but if the term service supervision is to be a talking point in this discussion, could someone put an unambiguous scope and definition on it?
It is indeed somewhat complicated, because there are two close notions and it is easy to confuse them. I would say that service supervision is an overloaded term, and refrain from using it.
At the very basic level, there is process supervision. It is a framework for starting, stopping, and monitoring daemons; that is what daemontools, runit, s6 and perp do.
Up a layer, there is service management. It is a global view of all services running on a machine, and a framework to handle them. A service can be represented by a running daemon, in which case managing the service amounts to supervising the daemon process; but it is not always the case. A network interface being up, for instance, can be a service - the service is down when the interface is unavailable - even though it doesn't have any process attached to it. systemd has that notion of "unit" which can be basically anything - it takes service management to a whole new level.

Process supervision is essential; everything that people hate about System V scripts comes from the lack of process supervision.
Service management is not essential, but, as far as I understand it, it is nice to have, and it is one of the most obvious advantages of systemd over its competitors. Again, I am not sure how important it is, and I would like to hear word from distribution maintainers: in order to switch from systemd to a new framework, do you need that framework to provide service management ?

Last edited by skarnet; 09-24-2014 at 05:09 PM.
 
3 members found this post helpful.
Old 09-24-2014, 05:09 PM   #49
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by skarnet View Post
It stands nonetheless that

...the features of systemd are the reason why it got adopted so widely
...similar features... need to be provided if we are to compete
I do not wish to engage in pointless debate, but I do not think that either of those propositions are without dispute.

I can appreciate that they are drivers of your own project, but they are not universally accepted truths.
 
Old 09-24-2014, 05:11 PM   #50
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Exactly,

Things brought in by systemd could be easily forked as modular projects working off a static library dependency rather than shared library to make it portable.

Why can't we have just a libsystemd static library to link from?

logind shouldn't have to require PAM, but it should be portable enough to use it's own internal dependency library without requiring the underlying shared systemd dependency library at all.

That's like compiling a program to work off zlib's static library to where it can be portable between systems, rather than the shared library locked to a single system.

Last edited by ReaperX7; 09-24-2014 at 05:12 PM.
 
Old 09-24-2014, 05:12 PM   #51
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Original Poster
Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
My question is why should there be a global system of "service supervision". Why doesn't every service implement their own service supervision as needed ? It sounds very naiive to think that a global system of service supervision can manage to bring up services if they have crashed. I mean it doesn't investigate into the cause of the stopped service, and I'd say it is unlikely to succeed in bringing it back up unless it knows what is wrong. How can it know what could go wrong with every service that it manages. It doesn't make sense.
 
1 members found this post helpful.
Old 09-24-2014, 05:18 PM   #52
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
The supervisor tracks the execution state of the service. Like a parent-child process, it uses the execution state as a way to track the service. If the execution state stops and exits, closing the parent-child process, the service supervisor re-executes the service.

Here's what Gerrit Pape wrote on it:

http://smarden.org/runit/benefits.html

Last edited by ReaperX7; 09-24-2014 at 05:20 PM.
 
Old 09-24-2014, 05:23 PM   #53
skarnet
LQ Newbie
 
Registered: Jun 2014
Location: Dublin, Ireland
Distribution: self-built
Posts: 24

Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
I do not wish to engage in pointless debate, but I do not think that either of those propositions are without dispute.

I can appreciate that they are drivers of your own project, but they are not universally accepted truths.
Well, if there is one debate about systemd that is not pointless, it is exactly this one - what should an alternative provide in order to be a serious competitor ?

I'm not talking about individual preferences here. I'm using s6 as is, with no service management, no PAM, no graphical interface, no glibc, almost no shell, and am very happy with it. I'm talking about something generic, something that a distribution needs. I am willing to take the time to correctly design the parts that are needed, and write them. It's not about my project as it is today: it's much bigger than that.

If you disagree with what I said in my previous message, then please enlighten me. What, in your opinion, should be done in order to provide an alternative to systemd, that systemd opponents would be happy with ?
 
Old 09-24-2014, 05:25 PM   #54
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
Here's a good article on service supervision as well:

http://jtimberman.housepub.org/blog/...olved-problem/
 
Old 09-24-2014, 05:35 PM   #55
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Original Poster
Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by ReaperX7 View Post
Eudev is being done to avoid extras. It's more of a minimalistic port rather than a full udev implementation, but it works as a full implementation. The only thing it lacks, or will lack in future developments is kdbus, but that has yet to even be considered as Linus warned them specifically about breaking the userspace would bring severe consequences.
kdbus is a major concern as
Quote:
A Phoronix reader pointed out a mailing list post made by Lennart Poettering that we missed out on at the end of May. The discussion is about a patch for dropping the udev firmware loader. In there it's mentioned that the systemd developers are planning to move udev onto KDBUS as transport, the kernel-based implementation of D-Bus. In moving this, the developers will get rid of userspace-to-userspace Netlink-based transport udev currently utilizes. Lennart wrote, "Unless the systemd-haters prepare another kdbus userspace until then this will effectively also mean that we will not support non-systemd systems with udev anymore starting at that point. Gentoo folks, this is your wakeup call." So using upstream udev will not be supported without using systemd. Lennart called out the Gentoo developers due to their eudev fork of udev.
http://www.phoronix.com/scan.php?pag...tem&px=MTczNjI

This means that if kdbus is merged into the kernel then systemd would be the only option even with eudev unless a workaround is found. I suppose if this happens we will have to assume that a workaround can and will be found, and that this workaround will allow init and the rest of the alternatives to work.
 
Old 09-24-2014, 05:40 PM   #56
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
It also means that unless you use systemd, or get a working kdbus API handler for non-systemd systems, the userspace will be completely broken.

However, unless kdbus doesn't get added, then it's a fruitless effort meaning, we have time to counterattack the advance of systemd, but we're on borrowed time. Once, and if, kdbus is ever added, it's over unless Gentoo's Eudev team commits to a complete fork.

Last edited by ReaperX7; 09-24-2014 at 05:42 PM.
 
Old 09-24-2014, 05:58 PM   #57
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Quote:
Originally Posted by skarnet View Post
Well, if there is one debate about systemd that is not pointless, it is exactly this one - what should an alternative provide in order to be a serious competitor ?
...
If you disagree with what I said in my previous message, then please enlighten me. What, in your opinion, should be done in order to provide an alternative to systemd, that systemd opponents would be happy with ?
To restate the points I disagreed with:

Quote:
Originally Posted by skarnet View Post
It stands nonetheless that

...the features of systemd are the reason why it got adopted so widely
...similar features... need to be provided if we are to compete
With regard to the first point, I think that systemd was swept into "acceptance" as quickly and to the degree that it has been primarily by politics and money, egos, allegiances and alliances and whatever other orchestrated pressures could be applied by those with the self-interest and resources to do it. I think that technical excellence and/or features were very low on that list, if on the list at all.

Given that I believe there to be some good measure of truth in that first assessment, I think that tryng to compete with it on the basis of features is one of those exercises that involves noxious liquids sprayed into a moving air mass!

I think genuine technical excellence and usefulness can withstand the systemd onslaught in the identical way that other wonderful and useful Unix ideas (including SysV init) withstood the Microsoft onslaught of the 80's and 90's, to re-emerge as what we have known as the GNU/Linux/BSD ecosystem.

Competition based on "features" is actually a small player in that scheme of things.

Last edited by astrogeek; 09-24-2014 at 06:01 PM.
 
1 members found this post helpful.
Old 09-24-2014, 06:49 PM   #58
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. There's something else?
Posts: 383

Rep: Reputation: 72
There's a choice missing - 'Almost anything *but* systemd' (I don't want to check 'other' for this because from my little understanding of these things, there's only 4 +/- that may be any good to go to *IF* Slackware actually has to at all).

Otherwise, I'm also of the camp *use what's working! - if it ain't broke, don't fix it!*. And if that fails, and systemd is used, then I too will somehow figure out how to move to one of the BSD's or LFS.
 
Old 09-24-2014, 07:16 PM   #59
snale
LQ Newbie
 
Registered: Mar 2010
Location: Dexterbranch Hollow
Distribution: slackware-14.1, 13.37, 12.2
Posts: 3

Rep: Reputation: 2
Why - please someone explain why it has to change? why is it inevitable? I'm just a newbie and I can understand how it works now - why complicate it?
 
2 members found this post helpful.
Old 09-24-2014, 08:08 PM   #60
genss
Member
 
Registered: Nov 2013
Posts: 741

Rep: Reputation: Disabled
Quote:
Originally Posted by astrogeek View Post
Competition based on "features" is actually a small player in that scheme of things.
it's a red queen's race
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubutnu won't boot. Error: Target file system doesn't have /sbin/init. No init found. Zeljka_Lin Linux - Newbie 9 05-02-2011 06:56 AM
System V VS BSD Init System subaruwrx Linux - Newbie 1 01-21-2005 12:02 AM
System hangs,if gives init 3 or init 4 Sailaja Reddy Red Hat 1 09-20-2004 01:31 AM
Redhat linux9.0:System hangs,if gives init 3 or init 4 Sailaja Reddy Linux - Newbie 4 09-16-2004 03:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:40 AM.

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