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.
Hi everyone,
As we are noticed, the Slackware-way to managing manually the services is simply /etc/rc.d/rc.$SERVICE {start|stop|restart|status} and to make services is running on startup, is enabling or disabling the execution permissions. In an another distributions are provided the service utility, which allows to manage the services just by running 'service $SERVICE start|stop|restart|status'. It is possible to implement 'service' as a shell script, and my question is it really need or not? If need, I can do this.
it is possible, but i'm sure for most people who have used Slackware, it won't be necessary for them, since in most cases you enable a service and never turn it off
Yes, but I'm not sure that don't cause another problems.
To all: thanks you for replies.
Are you asking it like a philosophical question?
I think Slackware quite deliberately avoids 'helper' tools like service and chkconfig as part of the KISS principle, but as you can see it's entirely possible to cobble up something similar.
I think Slackware quite deliberately avoids 'helper' tools like service and chkconfig as part of the KISS principle
Tools like chkconfig don't make sense on BSD init. Let me take an example.
To activate CUPS on Slackware, it's as simple as:
Code:
# chmod +x /etc/rc.d/rc.cups
When rc.cups is executable, rc.M will start it in the multiuser runlevels, that is 3 and 4. (And 2, but that's only of academic interest.)
Whereas for chkconfig, it allows me to activate CUPS without manually setting/removing a myriad of symlinks:
Code:
# chkconfig --level 2345 cups on
Or simply:
Code:
# chkconfig cups on
As for the service tool, I'm not sure. As far as I can tell, on systems mixing SysV and Upstart, the service command allows some sort of uniformity even if services are managed differently under the hood. Some time ago I had to configure an Ubuntu server, and I was quite puzzled by the mess^^^^^^^diversity of startup management methods.
Yes. And the KISS principes does not prevent to have a 'helpers' like liloconfig, xwmconfig, netconfig. This topic also is on a wave of threads about Slackware's initialization system, just to make it more better than it is at this time.
Those 'helpers' are shell scripts to make things easier. That is exactly what the rc.* files are. Shell scripts to make starting and stopping programs easier.
Not trying to start anything here, just pointing out the similarities
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.