LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Starting Samba at boot time. (https://www.linuxquestions.org/questions/linux-software-2/starting-samba-at-boot-time-56773/)

Unknown_User 04-25-2003 03:09 PM

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.

n00x 04-25-2003 03:22 PM

.............
 
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"

Crashed_Again 04-25-2003 03:28 PM

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>

Unknown_User 04-26-2003 03:30 AM

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!


All times are GMT -5. The time now is 04:58 AM.