LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Starting Samba at startup (https://www.linuxquestions.org/questions/linux-general-1/starting-samba-at-startup-49922/)

rwelch 03-15-2003 02:06 AM

Starting Samba at startup
 
At the moment I am starting samba manually by typing:

[root@Linux-server /root]# /usr/sbin/samba start

What do I need to do to start samba at boot time ?

Many thanks

niknah 03-15-2003 05:48 AM

ln -s /usr/sbin/samba /etc/rc.d/rc3.d/S99samba

you may want to change the number "99" to something else if you want samba to start in a certain order before/after certain other programs, take a look at /etc/rc.d/rc3.d/ to see what the order is on your computer.

cmfarley19 03-15-2003 06:09 AM

Check out:
Getting program to run at boot time.
http://farley.no-ip.org/linux/

chrisk5527 03-15-2003 10:19 AM

Since you are probably running RedHat (from looking at your info), you should have a startup script within the /etc/rc.d/init.d directory called "smb". If not, there should be one on your system someplace when Samba installed. When you put this script into the /etc/rc.d/init.d directory make sure to apply the correct permissions to the file. Also there is a utility on RedHat called "ntsysv" within the /usr/sbin directory. You need to have root privileges in order to execute this program, but it allows you to select which scripts to load at startup. Good luck man! =)

rwelch 03-17-2003 11:10 PM

Starting Samba at startup
 
Thanks for your help guys it worked


All times are GMT -5. The time now is 11:03 AM.