LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-17-2003, 02:56 PM   #1
toufshopguy
LQ Newbie
 
Registered: Oct 2003
Location: Davis, CA
Distribution: Red Hat 9
Posts: 4

Rep: Reputation: 0
Linux startup


I just configured samba and right now I have to manually start up samba with /usr/sbin/smbd -D etc.

Is there a way for linux to automatically load smbd on boot?

Thanks
 
Old 10-17-2003, 03:08 PM   #2
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
Yes, there is, but how you do it depends on what distribution you are using. Some distos use a BSD-style system for starting system services; others use the Sys V style.

Check you /etc directory to see if you have a directory called /etc/rc.d or a directory called /etc/init.d. Take a look at the files in those directories, depending on which one you have, and you can get an idea of how the services are started. The directories contain scripts which are executed at startup and/or shutdown.
 
Old 10-18-2003, 10:02 AM   #3
mysterio
Member
 
Registered: Sep 2003
Location: Springfield Ma.
Distribution: Mandrake 9.2,Knoppix 3.7,Slackware 10.0, FreeBSD. 5.3, OpenBSD 3.6, NetBSD 2.0, Debian
Posts: 275

Rep: Reputation: 30
You should list your distro in your profile, that way if you forget to include it in your post, (which it looks like you did) then we would see it and could better help you.
 
Old 10-20-2003, 12:58 AM   #4
toufshopguy
LQ Newbie
 
Registered: Oct 2003
Location: Davis, CA
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
I checked, and I have both /etc/rc.d and /etc/init.d. What should I look at?

Last edited by toufshopguy; 10-20-2003 at 01:02 AM.
 
Old 10-20-2003, 02:53 AM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Well.. in Red Hat 9 the actually services are contained in /etc/rc.d/init.d - just create a symlink from the service and put it in the run level directory that you are using - ie if you are in run level 5 (graphical mode) then put it in /etc/rc.d/rc5.d - give it an order number like S45 at the start of the symlink name - an example with the numlock service under Mandrake

ln -s /etc/rc.d/init.d/numlock /etc/rc.d/rc5.d/S85numlock

this line simply creates a symlink from the numlock service and puts it in /etc/rc.d/rc5.d and renames it as S85numlock.
 
  


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
My Redhat Linux 9 machine won't startup but gives a startup error" njugs79 Linux - Newbie 2 03-23-2005 01:50 AM
linux startup syxxzonz Linux - General 4 06-16-2004 10:37 PM
Internships at new Linux startup splicednetworks Linux - General 1 05-18-2004 07:43 PM
How can I remove root logons using Linux Single and Linux Rescue from Red Hat startup LHRM Linux - Security 9 04-09-2004 08:07 PM
where is startup of linux jolly Linux - General 6 06-16-2001 01:48 AM


All times are GMT -5. The time now is 10:15 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration