LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Runlevels (https://www.linuxquestions.org/questions/slackware-14/runlevels-324542/)

nin881 05-17-2005 08:23 PM

Runlevels
 
I was looking to see what daemons started at the gui runlevel, usually runlevel 5. So, I looked in the /etc directory and there was no rc5.d directory in there. all I could find was the rc.d directory which had the rc4.d config file. It stated that in was the config runlevel. I'm used to Fedora and this is quite different. Where do you select the default daemons for the run level in slack? I couldn't find anything in th /etc directory.

Thanks,
Tom

username17 05-17-2005 08:31 PM

Hello,
Do you want to configure which daemons run at boot?
Edit /etc/inetd.conf, comment or uncomment the services and restart inetd.

If this isn't it and you want to specify daemons per run lvl, I'm not too sure about that.
Either way, GL.
-Jason

nin881 05-17-2005 09:35 PM

Yep, I wanted to see what daemons started at boot. With Fedora/Redhat you just go into the rc5.d and rename the files to have a S for start or a K for kill. It confused me when those directories didn't exist. I'll check out the intid.conf file after work.

Thanks, much appretiated
Tom

__J 05-18-2005 06:18 AM

you could use pkgtool ( needs to be run as root)

gbonvehi 05-18-2005 06:26 AM

To see a overview about the /etc/rc.d directory go here: http://www.slackware.com/book/index....SYSTEMOVERVIEW
and scroll to The /etc/rc.d Directory
Basically, you don't have runlevel directories, but file, and each service (if started stand-alone, you could use /etc/inetd.conf as stated, but this works only for network apps) is given a rc file. Like Apache has /etc/rc.d/rc.httpd, SSHd has /etc/rc.d/rc.sshd. To know if it will be run as startup, you just have to see if the file is executable or not (the permissions).
pkgtool as __J said, has a front-end to this rc files, it will basically make them executable or not depending on what you choose. To change the permissions manually, just chmod -x /etc/rc.d/rc.httpd for example.

killerbob 05-18-2005 08:18 AM

GUI in Slackware is usually runlevel 4.

As for what's running, the same services as runlevel 3. Everything that's executable in /etc/rc.d/
In addition, it runs /etc/rc.d/rc.4, which calls GDM, KDM, or XDM in that order of preference. The only difference between RL3 and RL4 in Slack is that RL4 has X running.

nin881 05-20-2005 05:18 PM

What I was trying to do was to mount an NFS share on to my new slack system and the mount command hung until you close the term. It is much different than my fedora system. I needed to enable the portmap file so I made it excutable. where do you find the nfsd and smbd services?

Thanks,
tom

cathectic 05-21-2005 02:24 AM

rc.nfsd and rc.samba

uselpa 05-21-2005 02:50 AM

The longer anwer would be: go into /etc/rc.d. There you'll find three scripts of interest: rc.samba, rc.portmap and rc.nfsd.

First read them, there's some interesting comments inside. Then make sure they're executable (chmod +x), this way they'll get started at the next boot.

To start them right away without rebooting, execute them with the "start" option (e.g. "./rc.samba start").

HTH


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