LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   rc scripts (http://www.linuxquestions.org/questions/slackware-14/rc-scripts-29566/)

mr_mandrill 09-04-2002 05:59 AM

rc scripts
 
Not really a pressing questions... just wondering..

which rc scripts do daemons like smbd nmbd dhcpd belong... I was hoping just to go into a script and uncomment a couple of lines so i greped through the scripts looking for any mention of these services yet there was none... except for dhcpd which was part of a conditional script/code that i didn't really understand?

For now I have these services launched in rc.local... just seems a little messy tho...?

acid_kewpie 09-04-2002 06:05 AM

launghing? how are you launching them inside a script? you should have an entry in /etc/rc.d/ for each daemon or service that is run, which is started by rc.sysinit or whatever slacks equivalent is... they are not loaded *inside* any script.

mr_mandrill 09-04-2002 06:15 AM

I can't remember exactly as i'm not at machine.. but I several rc scripts in /etc/rc.d like...

rc.modules
rc.local
rc.inet1
rc.inet2
rc..... (can't think of anymore off the top of my head)

at the moment I have entries in rc.local, something like

/usr/sbin/smbd
/usr/sbin/nmbd
(might be /usr/bin rather than /usr/sbin)

this seems a bit messy to me and figured that these services should be started with the rest of the network stuff....

so my question was.. which script should these entries be in... and is this the correct way to start the services?

acid_kewpie 09-04-2002 06:26 AM

and that was what i answered. they are not in any script, you jsut create an S80smb (for example) entry in /etc/rc3.d/ (for example) as a link to smb in /etc/rc.d/ (might only be /etc/init.d/rc.d on slack, dunno)

hanzerik 09-04-2002 06:42 AM

SAMBA is started under Slackware by the rc script "/etc/rc.d/rc.samba":


Find an example of rc.samba and put it in /etc/rc.d/:
# cp /usr/doc/<samba-version>/examples/rc.samba /etc/rc.d/

start Samba:
# /etc/rc.d/rc.samba start
you can add this line in /etc/rc.d/rc.local

hanzerik 09-04-2002 06:58 AM

Quote:

Originally posted by acid_kewpie
and that was what i answered. they are not in any script, you jsut create an S80smb (for example) entry in /etc/rc3.d/ (for example) as a link to smb in /etc/rc.d/ (might only be /etc/init.d/rc.d on slack, dunno)
Slackware uses rc.scripts to start and stop things, not S and K files. And they are all located in one directory /etc/rc.d/ , not like RedHat and Mandy which use the rc*.d directories to hold the simlinks to the program scripts in /etc/rc.d/init.d/

NSKL 09-04-2002 05:02 PM

Also some services are started by another daemon, inetd which is started in start up scripts.
take a look through /etc/inetd.conf to configure your inetd to start only desired services.
Hope that helps!
-NSKL

Aussie 09-05-2002 05:59 PM

Have a look at the /etc/rc.r/rc.inet2 script.


All times are GMT -5. The time now is 08:09 AM.