LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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


Reply
  Search this Thread
Old 03-30-2022, 02:47 PM   #31
tuxuser1
Member
 
Registered: Nov 2021
Posts: 167

Original Poster
Rep: Reputation: Disabled

i only asked about a functionality in this thread opened by me because I read important things except last two answers fully useless
 
Old 03-30-2022, 05:55 PM   #32
mishehu
Member
 
Registered: Aug 2014
Location: USA
Distribution: Slackware (where ::1 is), Centos, Debian
Posts: 106

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by LuckyCyborg View Post
@tuxuser1

And WHY you post this in the Slackware forum?

Did looks for your that the slackers are hungry on eagerly adopting your spectacular brand new init system?
I'm sorry, but I'm going to call you out on this. I've been observing a trend with you: you have a high propensity to post caustic and/or rude responses to people here. The biggest criticism that I can actually think of for tuxuser1 is that perhaps he/she/they should have started a new posting thread about the work that he/she/they are doing on their init. Nobody is obliged to use tuxuser1's new init. But yes, many slackers out there DO like to tinker, and I say let them knock their socks off as long as it doesn't threaten your system.
 
7 members found this post helpful.
Old 03-30-2022, 06:16 PM   #33
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by tuxuser1 View Post
Is it worth to develop...
I think... isn't that how everything started? Linus? Pat?

You clearly enjoy it (?), make use of it, so why not? Carry on, ask for suggestion if needed...

A GUI for superior overview of services would be nice... have a look at Windows...


Best of luck! I'll keep stalking you!
 
3 members found this post helpful.
Old 04-01-2022, 03:19 AM   #34
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
There is nothing intrinsically wrong with sysv-init. It is indeed reliable and gives the user the flexibility that one could expect. Perhaps with a little imagination, one could also tweak it to make up for any additional features other more modern init systems have, but I confess that I do not afford enough time to try it out.

I see a lot of questions on why a user might want to replace the sysv-init with runit. As I had authored the "long README" on SBo, I think that I may shed some light on the matter.

I had just tried Void Linux and I was blown away. The speed with which it boots up is amazing and runit is well structured and does not require much arcane syntax. I would say that it follows the "UNIX philosophy". A user may want to try runit if they would like have fun learning Slackware's booting up scripts and try to speed up the process.

Also, I find that listing additional services to /etc/rc.d/rc.local may not be "elegant". Runit gives the user better visibility on the system's services.

My concern with runit is that it appears to be unsupported, but I am not following the Void community anymore, so I may be wrong.

Last edited by ChrisAbela; 04-01-2022 at 03:22 AM.
 
5 members found this post helpful.
Old 04-01-2022, 03:56 AM   #35
mishehu
Member
 
Registered: Aug 2014
Location: USA
Distribution: Slackware (where ::1 is), Centos, Debian
Posts: 106

Rep: Reputation: 158Reputation: 158
Quote:
Originally Posted by ChrisAbela View Post
My concern with runit is that it appears to be unsupported, but I am not following the Void community anymore, so I may be wrong.
runit is hosted on smarden.org, and it hasn't had a very recent update, but it has had updates in the past 2-4 years iirc. If an init is done properly and no new features are added, a lack of further development doesn't necessarily indicate a problem. Perhaps in the eyes of the dev it's reached its perfection, and no new bugs have been discovered? Don't forget that runit itself is based directly off of djb's daemontools, so much of the heavy lifting had already been done and was well tested.
 
1 members found this post helpful.
Old 04-01-2022, 03:57 AM   #36
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,916

Rep: Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034Reputation: 5034
Quote:
Originally Posted by tuxuser1 View Post
Is it worth to develop a similar functionality?
I'd really say not, but what do you think about?
You help me to decide.

Thanks
I got a few "Why did you write that when $thing already exists!" responses when I posted my slackscan and slackup scripts. Some folks are just like that. Don't feel you have to justify your choices to anyone: if you've got an itch, scratch it, then shove it in a github (other hosting services are available) repo for anyone who might be interested.

So far, I think I had a whole two people show interest in my creations. Doesn't matter, I wrote it for me, because I wanted to scratch that itch.

Last edited by GazL; 04-01-2022 at 04:00 AM.
 
6 members found this post helpful.
Old 04-01-2022, 09:54 AM   #37
tuxuser1
Member
 
Registered: Nov 2021
Posts: 167

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ChrisAbela View Post
There is nothing intrinsically wrong with sysv-init. It is indeed reliable and gives the user the flexibility that one could expect. Perhaps with a little imagination, one could also tweak it to make up for any additional features other more modern init systems have, but I confess that I do not afford enough time to try it out.

I see a lot of questions on why a user might want to replace the sysv-init with runit. As I had authored the "long README" on SBo, I think that I may shed some light on the matter.

I had just tried Void Linux and I was blown away. The speed with which it boots up is amazing and runit is well structured and does not require much arcane syntax. I would say that it follows the "UNIX philosophy". A user may want to try runit if they would like have fun learning Slackware's booting up scripts and try to speed up the process.

Also, I find that listing additional services to /etc/rc.d/rc.local may not be "elegant". Runit gives the user better visibility on the system's services.

My concern with runit is that it appears to be unsupported, but I am not following the Void community anymore, so I may be wrong.
Yeah, I can't speak about sysv-init because I don't know it enough.
I run Runit because I alreay used it but, anyway, it also lacks some features for me.
There isn't a real one shot process management. Yes, you can do it but it requires a bit of hack which is not pretty elegant.
Additionally, it doesn't provide important data which can be very useful if you are a system administrator.
There isn't a real "restart" management.
Systemd provide that but, at the same time, I don't want it because it handles the "world".
My init system will provide all that, informing you all that happen about a service like a history. (Systemd doesn't give you that), moreover, it will not handle the "world" thus trying to following UNIX filosophy.
 
1 members found this post helpful.
Old 04-01-2022, 09:58 AM   #38
tuxuser1
Member
 
Registered: Nov 2021
Posts: 167

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by GazL View Post
I got a few "Why did you write that when $thing already exists!" responses when I posted my slackscan and slackup scripts. Some folks are just like that. Don't feel you have to justify your choices to anyone: if you've got an itch, scratch it, then shove it in a github (other hosting services are available) repo for anyone who might be interested.

So far, I think I had a whole two people show interest in my creations. Doesn't matter, I wrote it for me, because I wanted to scratch that itch.
I fully agree with you!
Anyway, I'm not justifying me....I only asked about an init system functionality which, yet now, I can't find an useful use.
I leave it in the future.
 
1 members found this post helpful.
Old 05-04-2022, 03:45 AM   #39
tuxuser1
Member
 
Registered: Nov 2021
Posts: 167

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Jan K. View Post
I think... isn't that how everything started? Linus? Pat?

You clearly enjoy it (?), make use of it, so why not? Carry on, ask for suggestion if needed...

A GUI for superior overview of services would be nice... have a look at Windows...


Best of luck! I'll keep stalking you!
I have a doubt about service enabling.
You imagine this scenario:

I have a process which requires the "multi-user" runlevel.
We set "multi-user" as default runlevel.
To enable this service, I create a symlink to "multi-user" runlevel.
Client side, when we show the data, just find the symlink show it as enabled.
So far so good.
Now, you would create a service which requires "reboot" or "poweroff" runlevel.
The init system also predicts these runlevels which can never be set as default.
I create a symlink to "reboot" or "poweroff" runlevel.
That means that they will be executed when reboot or poweroff the machine.
Client side, How should I show this service ? Enabled or not ?
Any ideas?
 
Old 05-04-2022, 08:31 AM   #40
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 528

Rep: Reputation: 272Reputation: 272Reputation: 272
Quote:
Originally Posted by tuxuser1 View Post
I have a doubt about service enabling.
You imagine this scenario:

I have a process which requires the "multi-user" runlevel.
We set "multi-user" as default runlevel.
To enable this service, I create a symlink to "multi-user" runlevel.
Client side, when we show the data, just find the symlink show it as enabled.
So far so good.
Now, you would create a service which requires "reboot" or "poweroff" runlevel.
The init system also predicts these runlevels which can never be set as default.
I create a symlink to "reboot" or "poweroff" runlevel.
That means that they will be executed when reboot or poweroff the machine.
Client side, How should I show this service ? Enabled or not ?
Any ideas?
In my view, such a service in the "enabled" state will execute stuff when state changes to reboot/poweroff and is in the "disabled" state when it will not.
As an example: let's say your system has a "clear /tmp dir on shutdown" service installed... you may chose to enable it or not based on whether you want to clear /tmp on reboot/poweroff or not... even though the service will only execute stuff in a different run-level than the one the user is currently on, one should be to see if it is enabled (will do the thing) or diabled (will not do the thing).

Does that make sense?
 
Old 05-04-2022, 10:48 AM   #41
tuxuser1
Member
 
Registered: Nov 2021
Posts: 167

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Slax-Dude View Post
In my view, such a service in the "enabled" state will execute stuff when state changes to reboot/poweroff and is in the "disabled" state when it will not.
As an example: let's say your system has a "clear /tmp dir on shutdown" service installed... you may chose to enable it or not based on whether you want to clear /tmp on reboot/poweroff or not... even though the service will only execute stuff in a different run-level than the one the user is currently on, one should be to see if it is enabled (will do the thing) or diabled (will not do the thing).

Does that make sense?
It makes sense but unfortunately it can't resolve my problem.
The configuration file of my services predicts some runlevels including poweroff and reboot.
As said above, I could configure a service only for reboot and poweroff but, at the same time, the default runlevel is multi-user (just an example).
Since I will not found the symlink in multi-user (default), client side, how should I have to consider it ?
I hope explain well.
 
Old 05-06-2022, 06:25 AM   #42
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
On runit, you are free to enable and disable services independently from runlevels.

By way of example, you can have a default runlevel that starts kdm, and another runelevel, say named terminal, that does not.
 
Old 05-09-2022, 10:06 PM   #43
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
The underlying problem with sysv-init is that is doesn't (by default) know how to monitor a service to ensure that it is still running.

I've been running a dovecot server on a local 14.2 machine for years now. I have not been able to depend upon my system startup to ensure that dovecot is actually running when the system comes up. Sometimes it does; sometimes it doesn't.
 
Old 05-10-2022, 01:10 AM   #44
tuxuser1
Member
 
Registered: Nov 2021
Posts: 167

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Richard Cranium View Post
The underlying problem with sysv-init is that is doesn't (by default) know how to monitor a service to ensure that it is still running.

I've been running a dovecot server on a local 14.2 machine for years now. I have not been able to depend upon my system startup to ensure that dovecot is actually running when the system comes up. Sometimes it does; sometimes it doesn't.
i'm almost done writing a new init system called Unitd. when I'm done you can try it and see if it meets your requirements
 
Old 05-10-2022, 01:38 AM   #45
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
Quote:
Originally Posted by Richard Cranium View Post
The underlying problem with sysv-init is that is doesn't (by default) know how to monitor a service to ensure that it is still running.

I've been running a dovecot server on a local 14.2 machine for years now. I have not been able to depend upon my system startup to ensure that dovecot is actually running when the system comes up. Sometimes it does; sometimes it doesn't.
If dovecot may run undemonised way, you may want to read my wiki for possible solutions

https://docs.slackware.com/howtos:slackware_admin:runit
 
  


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
How to get Runit working in Slackware. ReaperX7 Slackware 18 09-05-2014 10:14 PM
runit on SuSE 10.1 tzbishop SUSE / openSUSE 2 10-09-2006 11:26 AM
install runit-run package kristof_v Debian 1 03-07-2006 12:57 PM
runit problems deroB Linux - Software 3 01-17-2006 02:40 PM
xdm with runit? behmjose Linux From Scratch 0 05-22-2004 03:19 PM

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

All times are GMT -5. The time now is 08:38 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