LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-25-2003, 04:09 PM   #1
Unknown_User
Member
 
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 10.x, Fedora 9, OpenSuSE 11.3, Mythbuntu (Don't know it? Try - it rocks!)
Posts: 225

Rep: Reputation: 30
Starting Samba at boot time.


Hi all,

As a newbie windoze convert I am feeling please with myself for setting up Samba and actually getting it to work. (Linux just rocks!)

Could anyone tell me how and where I can add the /etc/init.d/smb start command to get samba to start by itself instead of my having to type it in a console.

Thanks, really appreciate the help.
 
Old 04-25-2003, 04:22 PM   #2
n00x
LQ Newbie
 
Registered: Dec 2002
Posts: 10

Rep: Reputation: 0
.............

ehlo,


change ur directory to /etc/rc.d/rcx.d then do this

"ln -s /usr/sbin/smbd S12Samba"

this will create a symbolic link which will trigger smb daemon to start with startup.

also u would want it to die when shutting down so logically u woud do this in same directory as above with a slight change:

"ln -s /usr/sbin/smbd K12Samba"

U also need nmbd daemon to start with smbd, so u might also have a more complete solution of providing one name for both daemons to start:

"ln -s /usr/sbin/samba S12Samba"

and

"ln -s /usr/sbin/samba K12Samba"
 
Old 04-25-2003, 04:28 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
What distro are you using? There are usually easier ways to do it.

<EDIT>
Usually something like:

chkconfig smb on

I think its smb but I'm not 100%. Haven't used samba in a while.
</EDIT>

Last edited by Crashed_Again; 04-25-2003 at 04:32 PM.
 
Old 04-26-2003, 04:30 AM   #4
Unknown_User
Member
 
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 10.x, Fedora 9, OpenSuSE 11.3, Mythbuntu (Don't know it? Try - it rocks!)
Posts: 225

Original Poster
Rep: Reputation: 30
Thanks for the advice guys.

Both right, I'm using Redhat 8 and I have found

redhat-config-services-0.8.2

which does this all for me but I like to know how it's working.

Thanks!
 
  


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
Starting eth0 at boot time ? Antonius Linux - Newbie 1 01-19-2005 08:27 PM
Small thing: starting samba for the first time. ditch* Linux - Networking 5 12-07-2004 08:19 AM
Starting X automaticaly at boot time dublinclontarf Slackware 2 04-15-2004 11:00 AM
starting applications at boot time jogurt666 Debian 4 01-21-2004 04:39 AM
why smbfs not starting up at boot time? gkogut Linux - Networking 2 11-10-2003 06:47 PM


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