Slackware This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
05-20-2014, 04:02 PM
|
#76
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by jpollard
It is a very old solution... its called "mv".
Nearly all the installation tools use it...
1. install new file as file.new
2. rename current file to file.old
3. rename file.new to file.
Or use a hard link (which is actually faster...)
1. install new file
2. remove link.
3. create link to new file.
In the VERY old days you had to use the first method with shared libraries as well. The reason you had to keep the file.old was that current processes might be using it, and if you deleted it then those processes could get a segfault.
Linux filesystems don't actually care - if a process is using a shared library the in-memory inode carries a reference count, removing the link from a directory doesn't delete the file (which only decrements the in memory link count, and removes the name from the directory). The file isn't deleted until the link count goes to zero...
This solution goes back to SunOS 2.xx days, around 1985.
|
Sorry, but I can't see how this is related to the part of Arkerless' post that I have quoted:
Quote:
Replacing text files that can be manipulated using very robust and mature tools we have all spent a significant portion of our life mastering and replacing them with a binary file only editable using new, immature tools developed and controlled by a central source, hmmm, where have I seen that before?
|
|
|
|
05-20-2014, 05:52 PM
|
#77
|
Member
Registered: Mar 2006
Distribution: Give me Slack or give me death.
Posts: 81
Rep:
|
Quote:
Originally Posted by TobiSGD
Can you elaborate on that?
|
I'm not sure exactly what you wanted me to elaborate on. Why text files are good?
|
|
|
05-20-2014, 06:38 PM
|
#78
|
Senior Member
Registered: Jun 2009
Posts: 1,444
|
Quote:
Originally Posted by moisespedro
Does anyone know about a distro Arch-like but with no systemd?
|
This one, too:
http://www.lsdlinux.org/
|
|
|
05-20-2014, 07:55 PM
|
#79
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Quote:
Originally Posted by Arkerless
I'm not sure exactly what you wanted me to elaborate on. Why text files are good?
|
No, what exactly do you mean with that statement? What do you want to edit and why does that not work anymore?
|
|
|
05-21-2014, 02:05 AM
|
#80
|
Member
Registered: Mar 2006
Distribution: Give me Slack or give me death.
Posts: 81
Rep:
|
Quote:
Originally Posted by TobiSGD
No, what exactly do you mean with that statement? What do you want to edit and why does that not work anymore?
|
Well it's not just editing, it can also be reading, recovering, etc. Text files are mature tech, just about anything you could possibly need to do with a text file there is already a tool to do it. When you are working with a binary file, and it really doesnt matter that much if the format is open or not though of course open is at least theoretically better, but you dont get to choose from all of these tools that have already been built, no, you have to use a special tool just for this one file. If the tool you need has not already been created most of us are out of luck, open format or not.
And it's not me, I just avoid using it. But this guy for instance finds that the log files he needs become unreadable at just the moment he needs them which is just what I would expect from the design as I understand it. A single point of failure combined with a binary log sounds like a recipe for anti-slack to me. Googling the subject turns up a whole lot of similar complaints, bug reports, etc.
And yeah, it sounds very much like the windows registry to me. Both replaced a set of text files with a single binary file. The registry is definitely an improvement in some ways, but it is still probably the biggest single point of failure in the system. The vendor-specific tool has limited functionality and you just cant use standard tools on it. A fragile and non-repairable foundation does not make for a sturdy house.
|
|
3 members found this post helpful.
|
05-21-2014, 06:36 AM
|
#81
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Now I get it, you mean the binary log file. Why not just saying that directly? Anyways, to address your points:
Quote:
Originally Posted by Arkerless
Well it's not just editing, it can also be reading, recovering, etc. Text files are mature tech, just about anything you could possibly need to do with a text file there is already a tool to do it. When you are working with a binary file, and it really doesnt matter that much if the format is open or not though of course open is at least theoretically better, but you dont get to choose from all of these tools that have already been built, no, you have to use a special tool just for this one file. If the tool you need has not already been created most of us are out of luck, open format or not.
And it's not me, I just avoid using it. But this guy for instance finds that the log files he needs become unreadable at just the moment he needs them which is just what I would expect from the design as I understand it. A single point of failure combined with a binary log sounds like a recipe for anti-slack to me. Googling the subject turns up a whole lot of similar complaints, bug reports, etc.
|
At first, any init system is and will always be a single point of failure, regardless if it is systemd, sysvinit, bsdinit, ... .
If binary logs bother you (and they definitely bother me) then simply don't use them. Install a classic syslog, it will even benefit from the extended logging capabilities of journald, since journald will pass through all the messages, even those that syslog doesn't catch normally.
Quote:
And yeah, it sounds very much like the windows registry to me. Both replaced a set of text files with a single binary file. The registry is definitely an improvement in some ways, but it is still probably the biggest single point of failure in the system. The vendor-specific tool has limited functionality and you just cant use standard tools on it. A fragile and non-repairable foundation does not make for a sturdy house.
|
The registry is for configuration, not for logging. systemd is still configured by text files, so the comparison with the registry is simply wrong. Even if you would compare the registry to logging, you cant just add text files to the registry, which can easily be done with systemd logging.
|
|
|
05-21-2014, 10:07 AM
|
#82
|
Member
Registered: Mar 2006
Distribution: Give me Slack or give me death.
Posts: 81
Rep:
|
Quote:
Originally Posted by TobiSGD
At first, any init system is and will always be a single point of failure, regardless if it is systemd, sysvinit, bsdinit, ... .
|
This is true in a sense but you are dodging the point. Normal init systems are not single points of failure for *logging* because a normal init system does not try to be a unified logging system as well.
Quote:
If binary logs bother you (and they definitely bother me) then simply don't use them. Install a classic syslog, it will even benefit from the extended logging capabilities of journald, since journald will pass through all the messages, even those that syslog doesn't catch normally.
|
If I understand that system correctly, you still have journald doing the same thing but exporting the datastream at the end, this does not sound more robust.
Quote:
The registry is for configuration, not for logging.
|
Obviously.
Quote:
systemd is still configured by text files, so the comparison with the registry is simply wrong.
|
No it's not. They are both unified binaries that replaced a collection of text files. The comparison is apt and specific.
Quote:
Even if you would compare the registry to logging, you cant just add text files to the registry, which can easily be done with systemd logging.
|
Actually you can. You can export the registry to a text file, and you can import entries from text files. Very useful capabilities but they still fail to ameliorate the basic fragility of the structure.
|
|
2 members found this post helpful.
|
05-21-2014, 10:24 AM
|
#83
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
If you want an alternative to systemd, our work in the LFS section on Runit is published and available. Translate it for Slackware (shouldn't be too hard) and you have a new init system.
It's standard UNIX scripting compliant, small, completely modular, fast, and very customizable. This isn't the only alternative so either get off your duffs and do some work to import Slackware a new init system that isn't systemd and can use either classic udev or eudev, or don't complain.
We worked hard to bring this forward on LFS. Do the work for Slackware, and you'll have your solution if you so choose.
|
|
2 members found this post helpful.
|
05-21-2014, 10:46 AM
|
#84
|
Member
Registered: Jan 2013
Location: France
Distribution: Slackware 14.1 32 bits
Posts: 211
Rep:
|
Making <foo>init like Runit work on Slackware is doable. Sure.
Making the DE's provided by Pat compatible with it is another task on its own.
|
|
|
05-21-2014, 01:40 PM
|
#85
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
Actually the DEs aren't an issue. You're referring to things like XDM, KDM, and GDM by chance?
All you have to with those is draft a run file to start the service, link it to the the runsv assigned desktop runlevel directory and make script executable.
Otherwise startx works all the same.
|
|
|
05-21-2014, 03:01 PM
|
#86
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
Quote:
Originally Posted by ReaperX7
Actually the DEs aren't an issue. You're referring to things like XDM, KDM, and GDM by chance?
All you have to with those is draft a run file to start the service, link it to the the runsv assigned desktop runlevel directory and make script executable.
Otherwise startx works all the same.
|
Well... gdm has dependencies on systemd - at least the current version does. gdm depends on logind which depends on systemd. gdm also depends on systemd for performing the cleanup that gdm should have been doing.
https://blogs.gnome.org/ovitters/201...temd-thoughts/
|
|
|
05-21-2014, 06:04 PM
|
#87
|
Member
Registered: Mar 2006
Distribution: Give me Slack or give me death.
Posts: 81
Rep:
|
Quote:
Originally Posted by jpollard
Well... gdm has dependencies on systemd - at least the current version does. gdm depends on logind which depends on systemd. gdm also depends on systemd for performing the cleanup that gdm should have been doing.
https://blogs.gnome.org/ovitters/201...temd-thoughts/
|
GDM does not depend on systemd. It only depends on having something in place which behaves exactly like systemd.
Seems a hair to split but it's not meaningless. IF GDM were important enough someone would just figure out precisely what functionality it relies on and implement that functionality in a sane standalone. With all the Gnome developers using systemd their requirements could easily change without notice or knowledge so someone would have to be pretty motivated to take that on and keep it up to date. Seems easier to me to just continue living without anything GNOME-related but YMMV.
|
|
|
05-21-2014, 09:28 PM
|
#88
|
Senior Member
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,908
|
Quote:
Originally Posted by Arkerless
GDM does not depend on systemd. It only depends on having something in place which behaves exactly like systemd.
|
I believe that is the definition of "dependency".
Quote:
Seems a hair to split but it's not meaningless. IF GDM were important enough someone would just figure out precisely what functionality it relies on and implement that functionality in a sane standalone. With all the Gnome developers using systemd their requirements could easily change without notice or knowledge so someone would have to be pretty motivated to take that on and keep it up to date. Seems easier to me to just continue living without anything GNOME-related but YMMV.
|
That is why it depends on systemd. The lack of documentation of what it "depends on".
Personally, I blew off gnome starting with gnome 3.
The PROBLEM that remains is that the gnome developers are forcing other desktops to adopt the dependencies too.
|
|
1 members found this post helpful.
|
05-21-2014, 10:02 PM
|
#89
|
Guru
Registered: Mar 2004
Location: Canada
Distribution: Slackware (desktops), Void (thinkpad)
Posts: 7,432
|
Quote:
Originally Posted by jpollard
Personally, I blew off gnome starting with gnome 3.
|
I stopped using Gnome in Slackware when PV dropped it from -current.
|
|
|
05-21-2014, 10:11 PM
|
#90
|
LQ Guru
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
|
Not only that, but KDM and XDM are included by default with Slackware, so truthfully, why bother with a DM that uses software that's unwanted or only a duplication? KDM can be used to launch Xfce, IceWM, Mate, KDE, OpenBox, FluxBox, etc. That makes GDM... USELESS!
Also, GDM's older version, as promoted on SlackBuilds.org, does not require systemd.
Your argument on that holds about as much water as a pot with no bottom.
|
|
|
All times are GMT -5. The time now is 03:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|