LinuxQuestions.org
Help answer threads with 0 replies.
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 09-04-2002, 05:59 AM   #1
mr_mandrill
Member
 
Registered: Aug 2002
Location: UK
Distribution: Slackware 8.1
Posts: 74

Rep: Reputation: 15
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...?
 
Old 09-04-2002, 06:05 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 09-04-2002, 06:15 AM   #3
mr_mandrill
Member
 
Registered: Aug 2002
Location: UK
Distribution: Slackware 8.1
Posts: 74

Original Poster
Rep: Reputation: 15
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?
 
Old 09-04-2002, 06:26 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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)
 
Old 09-04-2002, 06:42 AM   #5
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
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
 
Old 09-04-2002, 06:58 AM   #6
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
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/
 
Old 09-04-2002, 05:02 PM   #7
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
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
 
Old 09-05-2002, 05:59 PM   #8
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Have a look at the /etc/rc.r/rc.inet2 script.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
VPN: Debian Scripts -> Mandriva 2006 Scripts Undefined Mandriva 0 11-30-2005 12:10 PM
Need help running scripts from scripts sdouble Linux - Newbie 3 05-31-2004 12:56 PM
What scripts would you like to see? kittani Linux - Software 1 05-20-2004 03:26 AM
Scripts? zombie killa Linux - Software 5 05-29-2003 05:19 PM
scripts mdjames0 Linux - Newbie 4 08-02-2002 09:10 PM

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

All times are GMT -5. The time now is 06:03 PM.

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