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.
I hope I don't start another fight in this thread, but I feel I am encountering some trouble while learning Linux.
As many would know, most Linux distributions use systemd as their default init system for managing services and daemon, etc using the command 'systemctl'.
I wonder if there are any alternative commands to use instead of 'systemctl'.
Thank you.
daemons in Slackware are started and stopped using the shell scripts you can find in /etc/rc.d, there isn't a dedicated command to start/stop them because it's simply not needed : if you want to start apache you just have to make /etc/rc.d/rc.httpd executable and issue a
Thanks for the response! Yet how can we find the appropriate script for the desired services?
For example, if we find a code online that tells us to enter:
Code:
systemctl enable atd
How should we translate that to a Slackware command?
I understand that sysV has its init written as shell scripts but couldn't find which to use.
Thanks for the response! Yet how can we find the appropriate script for the desired services?
For example, if we find a code online that tells us to enter:
Code:
systemctl enable atd
How should we translate that to a Slackware command?
I understand that sysV has its init written as shell scripts but couldn't find which to use.
The atd is started during boot by the /etc/rc.d/rc.M script which is run automatically when entering multi-user mode.
More generally if looking for the script which starts (say) the 'qwerty' service, first check whether there's a an rc.qwerty script in /etc/rc.d directory. If not, grep for qwerty in all files in /etc/rc.d directory (grep -i qwerty /etc/rc.d/rc.* or find /etc/rc.d/ -type f| xargs grep -i qwerty).
Slackware uses BSD style init scrips, as opposed the SystemV, which was common among most distros, or SystemD, which is becoming common. This gives an overview of how the Slackware init system works: http://www.slackware.com/config/init.php
You can generally start a daemon by cding to the appropriate directory (commonly in /etc) and issuing the command
Code:
[daemon name] start
Sometimes the word "restart" replaces the word "start." You can see the man pages for the respective daemons for details and arguments.
I happen to have Mageia 6 on one of my computers. With Systemd. I managed to create a service which starts simple http server which comes with Python. As prrof of concept.
I had an idea. Creating Systemd unit which emulates BSD style RC system. For people who are forced to use Systemd in their line of work. Do you think it is worth the effort ? Creating a Systemd unit is ... quirky. Perhaps it might make life easier for those who use Systemd not by their own choice.
The idea came to me while playing with FreeBSD, which introduced RCNG, but still maintains traditional RC system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.