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